X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Frfc822address.php;h=d662a4625b6323002f468f550461d7bd6f86337e;hb=0022f6db893b2e82113a1f902564794fc8244792;hp=f08ee1e84c27617a7debfbae50a77b0a8b37c1d9;hpb=d1532827f9e806c6774c546f0cf19bc55289b21d;p=squirrelmail.git 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);