Procházet zdrojové kódy

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 před 22 roky
rodič
revize
f11cb00d14
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);