From 5b4884be27e19be2bd010decaf8055cf8725b163 Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 23 Feb 2006 14:13:47 +0000 Subject: [PATCH] need to keep it 'url', not 'idiocy', because 'url' also matches the regexp git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10818 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index f3319390..8f232695 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -1701,7 +1701,8 @@ 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(\\\\)?/i",'url', $content); + // translate ur\l and variations (IE parses that) + $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]); @@ -2177,7 +2178,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links "idiocy", "idiocy", "", - "idiocy", + "url", "url(\\1#\\1)", "url(\\1#\\1)", "url(\\1#\\1)", -- 2.25.1