[wp-trac] [WordPress Trac] #34965: IDN site and wp_validate_redirect()

WordPress Trac noreply at wordpress.org
Thu Dec 10 05:21:42 UTC 2015

#34965: IDN site and wp_validate_redirect()
 Reporter:  dikiyobraz    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:                |
 If site runs on IDN domain
 (https://en.wikipedia.org/wiki/Internationalized_domain_name) it's
 localized name translated into 'punycode' before entering it into the DNS
 server and later into webserver.

 IDN site name: сайт.com (site.com in Russian)
 Punycode: xn--80aswg.com

 Local links on site are in IDN form. However wp_validate_redirect() gets
 host in punycode form and failed to validate. As result user redirected to
 /wp-admin page.

 This error happens when WP URL set in IDN format. If it set in punycode
 format WP works great, but it is not obvious for user, he simply can have
 no idea what is punycode at all.

Ticket URL: <https://core.trac.wordpress.org/ticket/34965>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list