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

Bug #5804 "-" is valid in domain extension
Submitted: 2005-10-28 04:05 UTC Modified: 2005-11-01 04:04 UTC
From: parsa Assigned: toggg
Status: Closed Package: Validate
PHP Version: 5.0.3 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-28 04:05 UTC] amir at itdate dot com
Description: ------------ In e-mail validator "-" is valid in last part of domain (extension) I think it's not necessary. Test script: --------------- ////only remove "-" from last block [A-Za-z\-] >>>> [A-Za-z]

Comments

 [2005-10-28 04:32 UTC] toggg
We don't understand exactly what you want. Could you provide example(s) of e-mail adresses you consider faulty ? Thanks for your interest in this package.
 [2005-10-28 06:02 UTC] amir at itdate dot com
when I want validate email address like 'amir@itdate.co-m' or amir@itdate.- validator class return true I think this is no a valid email
 [2005-10-31 12:11 UTC] toggg
Only trailing minuses are forbidden in the domain part, amir@itdate.co-m is OK amir@itdate.com- is not, as others now in the email.phpt but it's more a bug than a RFE Merci
 [2005-11-01 04:04 UTC] toggg
This bug has been fixed in CVS. 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.