Permalink
Browse files

Any single quotes, at least, in `$_SERVER['REQUEST_URI']` are slashed…

…, unlash them before matching

Manual cherry pick of simonwheatley@809c565

Closes #29
  • Loading branch information...
1 parent 4d67c4c commit 17e7701d3737ffb6adbc106c5e9269af3c3ba1b2 @danielbachhuber danielbachhuber committed Dec 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 safe-redirect-manager.php
@@ -723,6 +723,7 @@ public function action_parse_request() {
// get requested path and add a / before it
$requested_path = sanitize_text_field( $_SERVER['REQUEST_URI'] );
+ $requested_path = stripslashes( $requested_path );
/**
* If WordPress resides in a directory that is not the public root, we have to chop

0 comments on commit 17e7701

Please sign in to comment.