also parse uppercase U\RL
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 Feb 2006 13:10:58 +0000 (13:10 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 Feb 2006 13:10:58 +0000 (13:10 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10815 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index bed523a7d1c3cb1782dbeb8fe034dd1ef67fca73..14ad942cb7af303d0969619d4921a60c094f8a7d 100644 (file)
@@ -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]);