Better broken path info workaround for setups that use redirection.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d004dacd10
commit
e2aecdde88
@ -1514,7 +1514,7 @@ class WP {
|
|||||||
|
|
||||||
// The requested permalink is in $pathinfo for path info requests and
|
// The requested permalink is in $pathinfo for path info requests and
|
||||||
// $req_uri for other requests.
|
// $req_uri for other requests.
|
||||||
if ( ! empty($pathinfo) && ($wp_rewrite->index != $pathinfo) ) {
|
if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', $pathinfo) ) {
|
||||||
$request = $pathinfo;
|
$request = $pathinfo;
|
||||||
} else {
|
} else {
|
||||||
// If the request uri is the index, blank it out so that we don't try to match it against a rule.
|
// If the request uri is the index, blank it out so that we don't try to match it against a rule.
|
||||||
|
Loading…
Reference in New Issue
Block a user