Bug #19094 [Opn->Csd]: Wrong email_regexp pattern

From: Date: Mon, 12 Mar 2012 09:42:08 +0000
Subject: Bug #19094 [Opn->Csd]: Wrong email_regexp pattern
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8379@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19094&edit=1 ID: 19094 Updated by: alec@alec.pl Reported By: hgs at cs dot columbia dot edu Summary: Wrong email_regexp pattern -Status: Open +Status: Closed Type: Bug Package: Mail_Mime Operating System: Centos Package Version: 1.8.2 PHP Version: 5.3.8 -Assigned To: +Assigned To: alec Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: alec This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Fixed in git. Previous Comments: ------------------------------------------------------------------------ [2011-12-01 03:53:01] hgschulz From my tests $email_regexp = '([^\s<]+|("[^\r\n"]+"))@\S+'; avoids this problem. ------------------------------------------------------------------------ [2011-12-01 03:43:06] hgschulz Description: ------------ According to RFC 2822 and RFC 5322, email addresses do not have to contain a space between the quoted address and the <> part, so that "John Doe"<doe@example.com> (no space between " and <) is perfectly valid. Same for Doe<doe@example.com> The script puts the Doe in the email address, which then yields the wrong escaping. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19094&edit=1

« previous php.pear.bugs (#8379) next »