Opened 9 years ago
Closed 9 years ago
#34965 closed defect (bug) (duplicate)
IDN site and wp_validate_redirect()
Reported by: | dikiyobraz | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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.
Example:
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Related: #33055 should introduce Requests, which includes an IDNA parser.