Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#16646 closed defect (bug) (duplicate)

non-english category prefix not working

Reported by: qamaz Owned by: qamaz
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Permalinks Keywords:
Focuses: Cc:


Reason: this lines wont work with non-english prefix without urlencode (canonical.php, line 363):

if ( !$redirect_url || $redirect_url == $requested_url ) // yes, again -- in case the filter aborted the request
		return false;

So the function proceeds to redirect, non-english symbols are cut away from the string by wp_sanitize_redirect or somethig, and the user is redirected to 404.

Solution: put

$redirect_url = urlencode($redirect_url);

somewhere in the redirect_canonical() function (not sure about the place).

Change History (4)

#1 @qamaz
7 years ago

  • Keywords needs-patch added; has-patch removed

#2 @linuxologos
7 years ago

  • Cc linuxologos@… added

#3 @solarissmoke
7 years ago

  • Keywords needs-patch removed
  • Resolution set to duplicate
  • Status changed from new to closed

#4 @ocean90
7 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.