Browse Source

check for empty string before we add it to the token array

stekkel 22 years ago
parent
commit
67eafdcf9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      class/mime/Rfc822Header.class.php

+ 1 - 1
class/mime/Rfc822Header.class.php

@@ -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);