Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #19094 Wrong email_regexp pattern
Submitted: 2011-12-01 08:43 UTC
From: hgschulz Assigned: alec
Status: Closed Package: Mail_Mime (version 1.8.2)
PHP Version: 5.3.8 OS: Centos
Roadmaps: 1.8.3    
Subscription  


 [2011-12-01 08:43 UTC] hgschulz (Henning Schulzrinne)
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.

Comments

 [2011-12-01 08:53 UTC] hgschulz (Henning Schulzrinne)
From my tests $email_regexp = '([^\s<]+|("[^\r\n"]+"))@\S+'; avoids this problem.
 [2012-03-12 13:42 UTC] alec (Aleksander Machniak)
-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.