From af7b5ce1f304ae036bb2d005d42a4e138a1db7f9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 2 Jun 2008 20:38:39 +0000 Subject: [PATCH] Use ORIG_PATH_INFO, if available. Props singpolyma. fixes #6995 git-svn-id: https://develop.svn.wordpress.org/trunk@8031 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-app.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-app.php b/wp-app.php index 03f5d6b8c2..b8559a79ab 100644 --- a/wp-app.php +++ b/wp-app.php @@ -172,7 +172,11 @@ class AtomServer { function handle_request() { global $always_authenticate; - $path = $_SERVER['PATH_INFO']; + if( !empty( $_SERVER['ORIG_PATH_INFO'] ) ) + $path = $_SERVER['ORIG_PATH_INFO']; + else + $path = $_SERVER['PATH_INFO']; + $method = $_SERVER['REQUEST_METHOD']; log_app('REQUEST',"$method $path\n================");