Do not process path info if it contains only "/".
git-svn-id: https://develop.svn.wordpress.org/trunk@1842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
82acac8021
commit
feca248c64
@ -12,7 +12,7 @@ $query_vars = array();
|
||||
|
||||
// Process PATH_INFO and 404.
|
||||
if ((isset($_GET['error']) && $_GET['error'] == '404') ||
|
||||
(! empty( $_SERVER['PATH_INFO']))) {
|
||||
(! empty( $_SERVER['PATH_INFO']) && '/' != $_SERVER['PATH_INFO'])) {
|
||||
|
||||
// If we match a rewrite rule, this will be cleared.
|
||||
$error = '404';
|
||||
|
Loading…
Reference in New Issue
Block a user