From d418ea50b51f53b0bb14143427aeb9f305dc99c0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 14 Mar 2004 16:43:55 +0000 Subject: [PATCH] Make sure $req_uri is not empty before passing to strpos(). git-svn-id: https://develop.svn.wordpress.org/trunk@976 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-blog-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 8ca6d65c62..a0da6fe9f4 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -33,7 +33,7 @@ if (! empty($_SERVER['PATH_INFO'])) { foreach ($rewrite as $match => $query) { // If the request URI is the anchor of the match, prepend it // to the path info. - if (strpos($match, $req_uri) === 0) { + if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0)) { $pathinfomatch = $req_uri . '/' . $pathinfo; }