Re: preg_replace to be replaced by preg_replace_callback

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

 




On Wed, February 19, 2020 1:50 pm, Alfred Charles Stockton wrote:
> 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.

Your copy of 1.4.23svn is somewhat outdated.  We're still rebuilding our
website (where snapshots will be available again once it's online), but
you can always get a fresh copy of that file here:

https://sourceforge.net/p/squirrelmail/code/HEAD/tree/branches/SM-1_4-STABLE/squirrelmail/functions/mime.php

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php




-----
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