check for empty string before we add it to the token array
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 17 Jun 2003 21:22:57 +0000 (21:22 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 17 Jun 2003 21:22:57 +0000 (21:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5074 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Rfc822Header.class.php

index 0855604dd930da0c29ae289797813287f3e32e86..eedcc36749cff700d6eb9cf59d5829af5f3b88a1 100644 (file)
@@ -243,7 +243,7 @@ class Rfc822Header {
                     $i = $iEnd;
                 }
                 $sToken = str_replace($aReplace, $aSpecials,$sToken);
-                $aTokens[] = $sToken;
+                if ($sToken) $aTokens[] = $sToken;
                 break;
             case '(':
                 $iEnd = strpos($address,')',$i);