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
62.253.230.14:30063] 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:
http://stockton.co.za/squirrelmail/src/compose.php?PG_SHOWALL=0&sort=0&startMessage=1&mailbox=INBOX&composenew=0&composesession=0&session=1&use_mailbox_cache=0&forward_as_attachment_init=1

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.


-- 
Regards,
Alf Stockton








-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



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

  Powered by Linux