Home » Validate » Validate » Bug #956
Validate::email() doesn't allow Internationalized Domain Names (IDN)
Details
| Request #956 | Validate::email() doesn't allow Internationalized Domain Names (IDN) |
|---|---|
| Submitted | 2004-03-06 09:40 UTC |
| From | swalk at prp dot physik dot tu-darmstadt dot de |
| Assigned | davidc |
| Status | Closed |
| Package | Validate |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-03-06 09:40 UTC] swalk at prp dot physik dot tu-darmstadt dot de
Description:
------------
Validate::email() doesn't accept domain names that contain umlauts.
Reproduce code:
---------------
<?php
require 'Validate.php';
var_dump(Validate::email('postmaster@tüv.de'));
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
[2004-03-06 09:45 UTC] neufeind at php dot net
You're absolutely right. However, there is just no real IDNA-domaincheck / converter available in PEAR. I know we should fix this - but basically I think we should add support for IDNA-converting first.
Will try to have a look at this - nowever, it's not *that* urgent, since currently afaik almost no mailclient is able to handle IDNA-domains yet :-))
Using the "xn--"-form should work without a problem.
[2005-04-05 02:52 UTC] nphase at spoono dot com
[a-zA-Z0-9]?
aren't we forgetting '-' and '.' ?