[wp-trac] [WordPress Trac] #10298: Error in /wp-admin/ when using danish characters (æøå) in domain names
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 12 07:09:26 UTC 2009
#10298: Error in /wp-admin/ when using danish characters (æøå) in domain names
--------------------------+-------------------------------------------------
Reporter: kjeldsen | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Security | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Changes (by dwright):
* cc: david_v_wright@… (added)
Comment:
Honestly, I feel this is attributable to a bug in php itself
http://bugs.php.net/bug.php?id=45657 (they of course disagree)
so, the (ugly) work around (acceptable?) is to use a html meta redirect.
If we could count on a idn_to_ascii method being available in a typical
WordPress environment
then 'header' would work. (but I doubt we can)
//(PHP 5 >= 5.3.0, PECL intl >= 1.0.2)[[BR]]
//$location = idn_to_ascii($location)
The included diff is one approach that would resolve the issue.
this fix assumes that the domain name they wish to use
is set in general settings (wp-admin/options-general.php) as WordPress
address (URL)
Another possible approach would be to add a (optional) field to the wp-
config.php file
Something like 'IDN name', one could put the punycode version of the url
here.
then if that variable is set, make sure the header redirect would use it.
# support for IDN names[[BR]]
define('IDN_AS_PUNYCODE', 'xn--domne-ura.dk');[[BR]]
domæne.dk -> (as punycode) -> xn--domne-ura.dk
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10298#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list