preg_replace to be replaced by preg_replace_callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Apache2/Squirrelmail 1.4.23 [SVN] is giving me the following error

[Wed Feb 19 15:37:38.632195 2020] [:error] [pid 955] [client] PHP Warning:  preg_replace(): The /e modifier is no
longer supported, use preg_replace_callback instead in
/usr/share/squirrelmail/functions/mime.php on line 716, referer:

Line  716 in /usr/share/squirrelmail/functions/mime.php looks like

$replace = preg_replace('/=([0-9a-f]{2})/ie', 'chr(hexdec("\1"))',$replace);

Please tell me what it should look like.

Alf Stockton

squirrelmail-users mailing list
Posting guidelines:
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives:
List info (subscribe/unsubscribe/change options):

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux