Improved $_SERVER['REQUEST_URI'] test for IIS, props ruslany, fixes #5682 for 2.8

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-06-28 00:44:06 +00:00
parent 12158471b1
commit 854dd6ff22
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ $_REQUEST = array_merge($_GET, $_POST);
if ( ! isset($blog_id) )
$blog_id = 1;
// Fix for IIS, which doesn't set REQUEST_URI
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
// Fix for IIS when running with PHP ISAPI
if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {
// IIS Mod-Rewrite
if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {