X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FMail%2FRFC822.php;h=8714df2e29acc8a516606fdadd3de19a71bca2d9;hb=8fc904e95b66ac4ce97fa3b493797da9aa0a54af;hp=58d36465cba21779887651cec4204f222f9271ec;hpb=28fe1c2f3c814ec6a578b0e49acaa27e9cf88a19;p=quix0rs-gnu-social.git diff --git a/extlib/Mail/RFC822.php b/extlib/Mail/RFC822.php old mode 100755 new mode 100644 index 58d36465cb..8714df2e29 --- a/extlib/Mail/RFC822.php +++ b/extlib/Mail/RFC822.php @@ -1,48 +1,37 @@ - * @author Chuck Hagenbuch | +// | Chuck Hagenbuch | +// +-----------------------------------------------------------------------+ /** * RFC 822 Email address list validation Utility @@ -63,7 +52,7 @@ * * @author Richard Heyes * @author Chuck Hagenbuch - * @version $Revision: 294749 $ + * @version $Revision: 1.24 $ * @license BSD * @package Mail */ @@ -646,8 +635,8 @@ class Mail_RFC822 { $comment = $this->_splitCheck($parts, ')'); $comments[] = $comment; - // +2 is for the brackets - $_mailbox = substr($_mailbox, strpos($_mailbox, '('.$comment)+strlen($comment)+2); + // +1 is for the trailing ) + $_mailbox = substr($_mailbox, strpos($_mailbox, $comment)+strlen($comment)+1); } else { break; }