Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#34965 closed defect (bug) (duplicate)

IDN site and wp_validate_redirect()

Reported by: dikiyobraz's profile 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)

#1 @rmccue
9 years ago

Related: #33055 should introduce Requests, which includes an IDNA parser.

#2 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @dikiyobraz, welcome to Trac!

Thanks for the report, we're already tracking this issue in #10690 (see also #19279 and #29170).

Related: #25113.

Note: See TracTickets for help on using tickets.