From a3a1f83d7f0c1df1d4d8449e5ff04fad30a31a6a Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 28 Jul 2008 16:26:59 +0000 Subject: [PATCH] Use ORIG_PATH_INFO if PATH_INFO is not available. fixes #7058 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8470 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index e2680ded1..3fc4f5168 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -68,6 +68,10 @@ if ( empty( $_SERVER['REQUEST_URI'] ) ) { } else { + // Use ORIG_PATH_INFO if there is no PATH_INFO + if ( !isset($_SERVER['PATH_INFO']) && isset($_SERVER['ORIG_PATH_INFO']) ) + $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO']; + // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) if ( isset($_SERVER['PATH_INFO']) ) { if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )