Thanks for your message.
This has already been fixed in Subversion 2 weeks ago, directly inside
stripmagic(). Next PmWiki version will be released in a few days.
Petko
--
If you upgrade : https://www.pmwiki.org/Upgrades
На 15/09/2022 17:25, Hans-Jürgen Godau написа:
After upgrqading pmwiki to vs. 2.3.11 i got the error
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated in
/home2/godau/public_html/valentin/wiki/pmwiki.php on line 75
My installed php Version is 8.2. I changed line 75 from
$ChangeSummary = substr(preg_replace('/[\\x00-\\x1f]|=\\]/', '',
stripmagic(@$_REQUEST['csum'])), 0, 100);
to
$ChangeSummary = stripmagic(@$_REQUEST['csum']);
if (!is_null($ChangeSummary) && strlen($ChangeSummary) > 0) {
$ChangeSummary = substr(preg_replace('/[\\x00-\\x1f]|=\\]/', '',
$ChangeSummary), 0, 100);
}
and pmwiki ran without the deprecated warning.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users