because we remove the quotes an empty string could be left => check if the
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 17 Jun 2003 21:21:57 +0000 (21:21 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 17 Jun 2003 21:21:57 +0000 (21:21 +0000)
string is empty before we add it to the token array

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5073 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index e3493e34ad9dee48095368cd08785c306d4d7add..dbc42968526dbab1b0b0bb096d7648ac5a23da2b 100755 (executable)
@@ -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);