浏览代码

reset token when another < is detected, to ensure that HTML tags between
style tags do not break finding the end tag.

Thijs Kinkhorst 17 年之前
父节点
当前提交
b57f700812
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/mime.php

+ 1 - 1
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 == '<') {