diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-30 08:19:47 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-30 08:19:47 +0000 |
| commit | a653ccc02d75f8ed07e2843d3339b837863c2271 (patch) | |
| tree | be64c76bbf3648411d4795b1ea76472b4072fb67 /wp-inst/wp-includes/classes.php | |
| parent | c88baed74f132b69a1041cb4e88ee8735857d8a1 (diff) | |
WP Core merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@255 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/classes.php')
| -rw-r--r-- | wp-inst/wp-includes/classes.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wp-inst/wp-includes/classes.php b/wp-inst/wp-includes/classes.php index 34bf8e3..a8bd5b0 100644 --- a/wp-inst/wp-includes/classes.php +++ b/wp-inst/wp-includes/classes.php @@ -1330,8 +1330,7 @@ class WP { ('/' != $_SERVER['PATH_INFO']) && (false === strpos($_SERVER['PATH_INFO'], '.php')) ) || - (empty($_SERVER['QUERY_STRING']) && - (false === strpos($_SERVER['REQUEST_URI'], '.php')) && + ((false === strpos($_SERVER['REQUEST_URI'], '.php')) && ('/' != $_SERVER['REQUEST_URI'])) ) { @@ -1345,7 +1344,11 @@ class WP { if (! empty($rewrite)) { $pathinfo = $_SERVER['PATH_INFO']; - $req_uri = $_SERVER['REQUEST_URI']; + $pathinfo_array = explode('?', $pathinfo); + $pathinfo = $pathinfo_array[0]; + $req_uri = $_SERVER['REQUEST_URI']; + $req_uri_array = explode('?', $req_uri); + $req_uri = $req_uri_array[0]; $home_path = parse_url(get_settings('home')); $home_path = $home_path['path']; |
