Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #22 from jeremyfelt/fix-possible-undefined-path
Browse files Browse the repository at this point in the history
Fix possible undefined warning with parsed site url. Closes #21
  • Loading branch information
danielbachhuber committed Oct 18, 2012
2 parents 9ae98d9 + f157bf0 commit ba6427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-redirect-manager.php
Expand Up @@ -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 );
}

Expand Down

0 comments on commit ba6427d

Please sign in to comment.