Fixes #1488
git-svn-id: https://develop.svn.wordpress.org/trunk@2744 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b480c75559
commit
c9c1cc2abb
@ -4,8 +4,8 @@ $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
|
|||||||
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
||||||
|
|
||||||
// Fix for IIS, which doesn't set REQUEST_URI
|
// Fix for IIS, which doesn't set REQUEST_URI
|
||||||
if (! isset($_SERVER['REQUEST_URI'])) {
|
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
|
||||||
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
|
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; // Does this work under CGI?
|
||||||
|
|
||||||
// Append the query string if it exists and isn't null
|
// Append the query string if it exists and isn't null
|
||||||
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
|
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user