Permalink
Browse files

Merge pull request #34 from Automattic/proper-sanitize

Apply prope sanitization to avoid stripping characters that shouldn't ac...
  • Loading branch information...
2 parents ef24de3 + 716bb61 commit 24e46eba5d9d818004123b526ba5533af98c07a8 @danielbachhuber danielbachhuber committed Jan 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );
/**

0 comments on commit 24e46eb

Please sign in to comment.