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

Bug #8839 defect
Submitted: 2006-10-03 11:52 UTC
From: ichtis at gmail dot com Assigned: amir
Status: Closed Package: Validate (version CVS)
PHP Version: 5.1.6 OS: Windows
Roadmaps: 0.8.0    
Subscription  


 [2006-10-03 11:52 UTC] ichtis at gmail dot com (Tomasz Osmialowski)
Description: ------------ I found small bug in PEAR Validate. My email address is tomi@3xw.pl and when I validated this I got false. I sending a small patch to mend this. $regex = '&^(?: # recipient: ("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+")| #1 quoted name ([-\w!\#\$%\&\'*+~/^`|{}]+(?:\.[-\w!\#\$%\&\'*+~/^`|{}]+)*)) #2 OR dot-atom @(((\[)? #3 domain, 4 as IPv4, 5 optionally bracketed (?:(?:(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:[0-1]?[0-9]?[0-9]))\.){3} (?:(?:25[0-5])|(?:2[0-4][0-9])|(?:[0-1]?[0-9]?[0-9]))))(?(5)\])| ((?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)*[a-z0-9](?:[-a-z0-9]*[a-z0-9])?) #6 domain as hostname \.((?:([^-])[-a-z]*[-a-z])?)) #7 ICANN domain names $&xi'; (I added "0-9" in this line ((?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)*[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)

Comments

 [2006-10-03 19:56 UTC] amir at php dot net (Amir Mohammad Saied)
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the CVS of the package. Please log into CVS with: cvs -d :pserver:cvsread@cvs.php.net:/repository login and check out the CVS repository of this package and upgrade cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/Validate pear upgrade pear/Validate/package2.xml or pear upgrade pear/Validate/package.xml If you are able to reproduce the bug with the latest CVS, please change the status back to "Open". Again, thank you for your continued support of PEAR. Thanks for report, but that's same the #8629 and is fixed in CVS. I'll release a new version in coming days.