| #
ec34bb30 |
| 19-Oct-2022 |
Andreas Gohr <andi@splitbrain.org> |
Update core code to make use of sexplode()
This makes use of our own explode mechanism everywhere were we expect a fixed number of results.
|
| #
a7580321 |
| 01-Sep-2022 |
Zebra North <mrzebra@mrzebra.co.uk> |
Fix clientIP() returning the wrong address
|
| #
12dd3cbc |
| 26-Aug-2022 |
Andreas Gohr <andi@splitbrain.org> |
introduce sexplode() as a PHP8 safe explode()
We often have constructs like
list($foo, $bar) = explode(',', $input, 2);
In PHP8+ this will throw warnings when the explode returns fewer than 2 elem
introduce sexplode() as a PHP8 safe explode()
We often have constructs like
list($foo, $bar) = explode(',', $input, 2);
In PHP8+ this will throw warnings when the explode returns fewer than 2 elements. Our code usually (always?) will anticipate missing elements so the construct isn't really problematic.
The implementation here wraps the solution suggested at https://stackoverflow.com/a/56971347 into a new utility function.
I anticipate that people might object to the function name. It was chosen as a short form of "safe explode". This makes fixing the warning easy by simply adding a single letter. I also find it slightly amusing and would be open to change it to just sex() just for the fun of it.
show more ...
|
| #
10f359ad |
| 28-Apr-2022 |
Andreas Gohr <andi@splitbrain.org> |
Replace direct calls to strftime with dformat calls
This is in preparation for fixing #3573
|
| #
e6c6ac50 |
| 22-Jan-2022 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #3574 from splitbrain/php81
Some PHP 8.1 compatibility fixes
|
| #
79a2d784 |
| 05-Jan-2022 |
Gerrit Uitslag <klapinklapin@gmail.com> |
import classes, replace dbglog, simplify, remove unused statements, and other warnings from IntelliJ
update phpdocs, rename dokuwiki/Ui/Draft to PageDraft
|
| #
bf8f8509 |
| 01-Jan-2022 |
Andreas Gohr <andi@splitbrain.org> |
guard against unset parameters
Many string function will throw a deprecation warning in PHP 8.1 when null is passed. This adds a few guards in some of our methods (not all, yet)
|
| #
f7711f2b |
| 01-Jan-2022 |
Andreas Gohr <andi@splitbrain.org> |
always use the same htmlspecialchars setup
defaults for htmlspecialchars change in PHP 8.1
All calls should always use our hsc() method to ensure comparability (especially when testing)
|
| #
357931f3 |
| 28-Dec-2021 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Merge branch 'master' into revisionHandle3
|
| #
a58fcbbc |
| 26-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
guard against unsert user name. fixes #3455
|
| #
d70c006d |
| 20-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #3270 from adakaleh/simplify_clientIP
Simplify clientIP() function
|
| #
22bbbace |
| 20-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #3269 from adakaleh/clientIP_page_locking
Remove clientIP() verification from page locking
|
| #
c1803f3d |
| 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
Merge remote-tracking branch 'upstream/master' into Refactor_Fulltext
|
| #
69f9b481 |
| 28-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
add dbg_deprecated()
|
| #
3b813d43 |
| 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
PHP8: check array key existence
|
| #
b24e9c4a |
| 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
implement PageFile class
PageFile class handles wiki text file and its change management for specific page, main part comes from `function saveWikiText()`. This ensures and enables to use one **Pag
implement PageFile class
PageFile class handles wiki text file and its change management for specific page, main part comes from `function saveWikiText()`. This ensures and enables to use one **PageChangeLog** instance during a page save process among class methods and relevant plugins.
show more ...
|
| #
bbb28b9c |
| 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
remove goto-loop structure
plugin event handler should set correct changeType.
|
| #
66f4cdd4 |
| 24-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
set current revision date 1sec before now for external deletion
in preparation for possible new page save
|
| #
9c42b79d |
| 16-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
update saveWikiText()
allow plugin that provides alternative policy for handling external edits in changelog
|
| #
d5824ab9 |
| 13-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
rigorous COMMON_WIKIPAGE_SAVE
ignore wrong changes in id and file data caused by event handlers
|
| #
c7192766 |
| 04-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
new method ChangeLog::addLogEntry()
rewrite `detectExternalEdit()` in inc/common.php
|
| #
5ec96136 |
| 01-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
set revInfo{'current'] when needed
do not set 'current' key in ChangeLog:getCurrentRevisionInfo(), instead set it during loop in Revision and Diff classes
|
| #
7866d571 |
| 24-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
UnitTest of pageinfo(), saveWikiText()
ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_s
UnitTest of pageinfo(), saveWikiText()
ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_set_metadata() call.
show more ...
|
| #
252acce3 |
| 23-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
coding style of functions using ChangeLog
|
| #
facfe250 |
| 14-Sep-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
external edits in changelog for images
|