Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Apply prope sanitization to avoid stripping characters that shouldn't…

… actually be stripped
  • Loading branch information...
commit 716bb61c3f178fc97c232fe3e7af9462954d653c 1 parent ef24de3
@danielbachhuber danielbachhuber authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  safe-redirect-manager.php
View
2  safe-redirect-manager.php
@@ -741,7 +741,7 @@ public function action_parse_request() {
return;
// get requested path and add a / before it
- $requested_path = sanitize_text_field( $_SERVER['REQUEST_URI'] );
+ $requested_path = esc_url_raw( $_SERVER['REQUEST_URI'] );
$requested_path = stripslashes( $requested_path );
/**
Please sign in to comment.
Something went wrong with that request. Please try again.