소스 검색

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);