From 32aebf5d7a845b64a6f704de7c82e52c18141380 Mon Sep 17 00:00:00 2001 From: rboren 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: http://svn.automattic.com/wordpress/trunk@976 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }