reset token when another < is detected, to ensure that HTML tags between
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 10 Feb 2008 16:38:47 +0000 (16:38 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 10 Feb 2008 16:38:47 +0000 (16:38 +0000)
style tags do not break finding the end tag.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12930 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index bbe6c53..8843d25 100644 (file)
@@ -1927,7 +1927,7 @@ function sq_fixstyle($body, $pos, $message, $id, $mailbox){
         $char = $body{$i};
         switch ($char) {
             case '<':
-                $sToken .= $char;
+                $sToken = $char;
                 break;
             case '/':
                  if ($sToken == '<') {