From e2aecdde88e02e3bb6d056a491c3abc3f6aaf539 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 3 Jan 2006 00:59:31 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 4cba440b86..5abe5db80a 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1514,7 +1514,7 @@ class WP { // The requested permalink is in $pathinfo for path info requests and // $req_uri for other requests. - if ( ! empty($pathinfo) && ($wp_rewrite->index != $pathinfo) ) { + if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', $pathinfo) ) { $request = $pathinfo; } else { // If the request uri is the index, blank it out so that we don't try to match it against a rule.