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

Bug #5804 "-" is valid in domain extension
Submitted: 2005-10-28 09:05 UTC
From: parsa Assigned: toggg
Status: Closed Package: Validate
PHP Version: 5.0.3 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 14 + 31 = ?

 
 [2005-10-28 09: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 09: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 11: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 17: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 09: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.