Permalink
Browse files

Merge pull request #22 from jeremyfelt/fix-possible-undefined-path

Fix possible undefined warning with parsed site url. Closes #21
  • Loading branch information...
2 parents 9ae98d9 + f157bf0 commit ba6427d6b3f159add020e22d81f3cab4046ad7a5 @danielbachhuber danielbachhuber committed Oct 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 safe-redirect-manager.php
@@ -703,7 +703,7 @@ public function action_parse_request() {
* the pre-WP path off the requested path.
*/
$parsed_site_url = parse_url( site_url() );
- if ( '/' != $parsed_site_url['path'] ) {
+ if ( isset( $parsed_site_url['path'] ) && '/' != $parsed_site_url['path'] ) {
$requested_path = preg_replace( '@' . $parsed_site_url['path'] . '@i', '', $requested_path, 1 );
}

0 comments on commit ba6427d

Please sign in to comment.