Sites with IDN domains can't be created
|Reported by:||SergeyBiryukov||Owned by:||ryan|
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?
Change History (19)
- Keywords 3.3-early removed
- Resolution set to fixed
- Status changed from reopened to closed