瀏覽代碼

because we remove the quotes an empty string could be left => check if the
string is empty before we add it to the token array

stekkel 22 年之前
父節點
當前提交
f11cb00d14
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -621,7 +621,7 @@ function parseAddress($address, $max=0) {
                 $i = $iEnd;
             }
             $sToken = str_replace($aReplace, $aSpecials,$sToken);
-            $aTokens[] = $sToken;
+            if ($sToken) $aTokens[] = $sToken;
             break;
         case '(':
             $iEnd = strpos($address,')',$i);