Forráskód Böngészése

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 éve
szülő
commit
f11cb00d14
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);