Skip to content

Commit

Permalink
Support for unicode chars
Browse files Browse the repository at this point in the history
This addresses issues raised by @eliyadzz samiahmedsiddiqui#61

Co-Authored-By: eliyadzz <87637445+eliyadzz@users.noreply.github.com>
  • Loading branch information
binyaminadzz and eliyadzz committed Feb 28, 2022
1 parent f8fa30b commit 54a73ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-custom-permalinks-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function init() {

if ( isset( $_SERVER['REQUEST_URI'] ) ) {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$this->request_uri = $_SERVER['REQUEST_URI'];
$this->request_uri = urldecode($_SERVER['REQUEST_URI']);
}

add_action( 'template_redirect', array( $this, 'make_redirect' ), 5 );
Expand Down

0 comments on commit 54a73ee

Please sign in to comment.