If PATH_INFO contains the index, don't use it for permalinks. Props gslin. fixes #1591

git-svn-id: http://svn.automattic.com/wordpress/trunk@2852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-09-08 20:48:09 +00:00
parent 2ddfc1c1d6
commit 9df8152e7f
1 changed files with 1 additions and 1 deletions

View File

@ -1365,7 +1365,7 @@ class WP {
// The requested permalink is in $pathinfo for path info requests and
// $req_uri for other requests.
if (! empty($pathinfo)) {
if (! empty($pathinfo) && ($wp_rewrite->index != $pathinfo)) {
$request = $pathinfo;
} else {
$request = $req_uri;