From 10c0caeba56ea1e7944fecbe1e71c0cbf4d29187 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 10 Feb 2008 16:38:47 +0000 Subject: [PATCH] reset token when another < is detected, to ensure that HTML tags between 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/mime.php b/functions/mime.php index bbe6c534..8843d259 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -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 == '<') { -- 2.25.1