浏览代码

check for empty string before we add it to the token array

stekkel 22 年之前
父节点
当前提交
67eafdcf9e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/mime/Rfc822Header.class.php

+ 1 - 1
class/mime/Rfc822Header.class.php

@@ -243,7 +243,7 @@ class Rfc822Header {
                     $i = $iEnd;
                 }
                 $sToken = str_replace($aReplace, $aSpecials,$sToken);
-                $aTokens[] = $sToken;
+                if ($sToken) $aTokens[] = $sToken;
                 break;
             case '(':
                 $iEnd = strpos($address,')',$i);