[wp-trac] [WordPress Trac] #24487: is_email() does not recognize IDN domains
WordPress Trac
noreply at wordpress.org
Fri Sep 25 18:46:02 UTC 2015
#24487: is_email() does not recognize IDN domains
--------------------------------+-----------------------------
Reporter: OlegCorner | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 3.5.1
Severity: minor | Resolution:
Keywords: has-patch is-email | Focuses:
--------------------------------+-----------------------------
Comment (by mitjajez):
Can't find how to make a patch here, but i belive we need do add
'''idn_to_ascii''' function [http://php.net/manual/en/function.idn-to-
ascii.php php > 5.4.0]
{{{
$domain = idn_to_ascii($domain);
}}}
on line [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
includes/formatting.php#L2422 #2422 in wp-includes/formatting.php]
and later
{{{
$email = implode( '@', array($local, $domain));
}}}
on line [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
includes/formatting.php#L2446 #2446 in wp-includes/formatting.php]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24487#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list