Home » Validate » Validate » Bug #10044
email validation bug
Details
| Submitted | 2007-02-07 11:08 UTC |
|---|---|
| From | ronin_san at rednoize dot com |
| Assigned | davidc |
| Status | Closed |
| Package | Validate |
| PHP Version | Irrelevant |
| OS | suse/mandrake |
| Roadmaps | 0.8.0 |
Comments
[2007-02-07 11:08 UTC] ronin_san at rednoize dot com
Description:
------------
script returns true when validating an (wrong) email but that's not the expected result. after the last period there should be max 4 letters valid(.mobi, .info, .name).
Test script:
---------------
<?php
var_dump(Validate::email('iam.someone@example.commmmasd'));
?>
Expected result:
----------------
false
Actual result:
--------------
true
[2007-02-22 14:25 UTC] ash at hexmen dot com
TLDs are regularly added, so if anyone 'fixes' this, it should be considered temporary.
Note: there are two 6-letter TLDs: 'travel' and 'museum'
http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
[2007-02-26 21:44 UTC] ronin_san at rednoize dot com
@ash:
I wasn't aware of 6 letter long domains when i have posted this. Good point - my fault.
@david:
that would be perfect! :)