Always close log fileClose the log file even when exceptions are thrown when trying to read from it.
Fix a corner caseWhen the log file is exactly 1 MB (MAX_READ_SIZE) In size, the first line(s) would not be shown.
Avoid out-of-memory problems in log viewerfixes #3919Squashed commit of the following:commit 322d0846f39b0641ab7af69e24d1bd70a95b58b5Author: Andreas Gohr <andi@splitbrain.org>Date: Mon Mar
Avoid out-of-memory problems in log viewerfixes #3919Squashed commit of the following:commit 322d0846f39b0641ab7af69e24d1bd70a95b58b5Author: Andreas Gohr <andi@splitbrain.org>Date: Mon Mar 20 18:45:30 2023 +0100 some more simplifications for the log viewer * use exceptions to abort on read errors * use the same fread call regardless of log sizecommit b8a3dfbd90a77811db380510cc279f973c92bd01Author: Hamid <hamid0x4c@gmail.com>Date: Mon Mar 20 17:49:41 2023 +0330 Fix code stylecommit aa0e5b6692f9c26a9c22875111760803e280c9acMerge: 23b372c94 ac1d8211aAuthor: Hamid <hamid0x4c@gmail.com>Date: Mon Mar 20 17:39:05 2023 +0330 Merge branch 'dokuwiki:master' into fix-display-large-logcommit 23b372c94d466ff3436177bf8386c879b78c5777Merge: d82b8818c e410a7b8fAuthor: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Mon Mar 20 17:35:07 2023 +0330 Merge branch 'fix-display-large-log' of github.com:Adibzadeh/dokuwiki into fix-display-large-logcommit d82b8818c86f614f7d504cf19ad6d0492bb6d92fAuthor: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Mon Mar 20 17:29:43 2023 +0330 Use only fopen to read logfilecommit e410a7b8fa7663039bbdcfd6a90aed89877bb744Author: Hamid <hamid0x4c@gmail.com>Date: Sat Mar 18 10:30:19 2023 +0330 White-space removedcommit 8f1ad23f785b1cccb790b39371b8989514777a38Author: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Sat Mar 18 10:12:16 2023 +0330 Refactoring getLogLines and code improvementscommit 37a0e60c920343ff45ed12ede2cf96c2251108a3Author: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Sat Mar 18 00:27:27 2023 +0330 Refactoring and improve error handlingcommit 25d3465289053130546c9066c82b0b620f596c33Author: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Sat Mar 18 00:00:59 2023 +0330 Translation for log errors in Fa and Encommit cc96b9babee12e4f4678380208685b3497a29b70Author: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Fri Mar 17 00:34:06 2023 +0330 code improvecommit 9c0e42285fc8d553e26c030d407d46f69f8c3d91Author: Hamid <hamid0x4c@gmail.com>Date: Tue Mar 14 18:16:23 2023 +0330 variable name fixedcommit 89124317ba2cccc12cb506f4d641a9e6288969e1Author: Hamid <hamid0x4c@gmail.com>Date: Tue Mar 14 18:13:30 2023 +0330 tab indent fixcommit b154bfde3ecd2039c16b8f8002ada291301e19b2Author: Hamid Adibzadeh <hamid0x4c@gmail.com>Date: Tue Mar 14 17:21:09 2023 +0330 fix #3919 log viewer runs into OOM
show more ...
translation update
Avoid indexing into log lineShould fix #3868 A log file should be treated as untrusted input. Thus we can make no assumptions about its content. Assuming a line has at least 2 characters length
Avoid indexing into log lineShould fix #3868 A log file should be treated as untrusted input. Thus we can make no assumptions about its content. Assuming a line has at least 2 characters length is an assumption we can avoid by using `substr($line, 0, 2) === ' '` instead of `$line[0] === ' ' && $line[1] === ' '`. No need to separately check for empty or `null` either.
Update intro.txt
Update core code to make use of sexplode()This makes use of our own explode mechanism everywhere were we expect afixed number of results.
Update French translationconsistency with the rest of the translation
use real French words. Thanks to @Trebmuh
translate the logviwer plugin into French
Fix PHP8.1 warnings in logviewer
avoid doubling line in logviewer. fixes #3554
Improve wording of Logviewer plugin intro text
codestyle fixes
added JavaScript based filter mechanism
added logging configurationLog facitlities can now be disabled. By default only debug is disabled.It might make sense to by default disable deprecated as well?Debug logging is now independend of
added logging configurationLog facitlities can now be disabled. By default only debug is disabled.It might make sense to by default disable deprecated as well?Debug logging is now independend of the allowdebug method. allowdebugwas often used in two ways: for displaying errors directly to the userand for logging to the debug log. Now it only controls the former.
123