mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-01 00:10:36 +01:00
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
This commit is contained in:
parent
5670d0e1ad
commit
32aebf5d7a
@ -33,7 +33,7 @@ if (! empty($_SERVER['PATH_INFO'])) {
|
|||||||
foreach ($rewrite as $match => $query) {
|
foreach ($rewrite as $match => $query) {
|
||||||
// If the request URI is the anchor of the match, prepend it
|
// If the request URI is the anchor of the match, prepend it
|
||||||
// to the path info.
|
// to the path info.
|
||||||
if (strpos($match, $req_uri) === 0) {
|
if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0)) {
|
||||||
$pathinfomatch = $req_uri . '/' . $pathinfo;
|
$pathinfomatch = $req_uri . '/' . $pathinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user