X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Frfc822address.php;h=d662a4625b6323002f468f550461d7bd6f86337e;hp=f08ee1e84c27617a7debfbae50a77b0a8b37c1d9;hb=6c84ba1ec45ab854c37b6f65c5b4d84ab1c7aad4;hpb=d1532827f9e806c6774c546f0cf19bc55289b21d diff --git a/functions/rfc822address.php b/functions/rfc822address.php index f08ee1e8..d662a462 100644 --- a/functions/rfc822address.php +++ b/functions/rfc822address.php @@ -2,7 +2,7 @@ /** * rfc822address.php * - * Copyright (c) 2004 The SquirrelMail Project Team + * Copyright (c) 2004-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Contains rfc822 email address function parsing functions. @@ -44,7 +44,7 @@ function parseRFC822Address($sAddress,$aProps) { $iLimit = $aProps['limit']; $aTokens = _getAddressTokens($sAddress); - $sPersonal = $sEmail = $sComment = $sGroup = ''; + $sEmail = $sGroup = ''; $aStack = $aComment = $aAddress = array(); foreach ($aTokens as $sToken) { if ($iLimit && $iLimit == count($aAddress)) { @@ -302,7 +302,6 @@ function _createAddressElement(&$aStack,&$aComment,&$sEmail) { function _getAddressTokens($address) { $aTokens = array(); - $aAddress = array(); $aSpecials = array('(' ,'<' ,',' ,';' ,':'); $aReplace = array(' (',' <',' ,',' ;',' :'); $address = str_replace($aSpecials,$aReplace,$address);