From c0c919091b1c716a884c303469cd4dc18b29c45b Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@8470 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index e2680ded13..3fc4f5168a 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'] )