From: kink Date: Thu, 23 Feb 2006 13:10:58 +0000 (+0000) Subject: also parse uppercase U\RL X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3367c904895ba81795d85f8bdefc2b5b4dfb372c;p=squirrelmail.git also parse uppercase U\RL git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10815 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index bed523a7..14ad942c 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -1701,7 +1701,7 @@ function sq_fixstyle($body, $pos, $message, $id, $mailbox){ // "url(\\1$secremoveimg\\2)", $content); // remove NUL $content = str_replace("\0", "", $content); - $content = preg_replace("/(\\\\)?u(\\\\)?r(\\\\)?l(\\\\)?/",'url', $content); + $content = preg_replace("/(\\\\)?u(\\\\)?r(\\\\)?l(\\\\)?/i",'url', $content); // NB I insert NUL characters to keep to avoid an infinite loop. They are removed after the loop. while (preg_match("/url\s*\(\s*[\'\"]?([^:]+):(.*)?[\'\"]?\s*\)/si", $content, $matches)) { $sProto = strtolower($matches[1]);