[wp-trac] [WordPress Trac] #15554: Sites with IDN domains can't be created
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 23 23:47:26 UTC 2010
#15554: Sites with IDN domains can't be created
----------------------------+-----------------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.0.1
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
When I try to create a new site with any valid IDN domain in Multisite, I
get “Missing or invalid site address” error.
I found the line in {{{ms-edit.php}}} from r13630 which causes the
problem:
{{{
if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match(
'|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
$domain = strtolower( $blog['domain'] );
}}}
What is the purpose of the first check? When I remove it and leave only
the second one, the site is added correctly.
Also, is it possible convert a domain name to Punycode automatically from
UTF-8?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15554>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list