Browse Source

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 years ago
parent
commit
f11cb00d14
1 changed files with 1 additions and 1 deletions
  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);