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 bbe6c5340c0d1bb8e4852e4abe25c0e2ea589e9f..8843d2591a8f898e3328ac1cccfb9c6ad87e8a05 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 == '<') {