Make WordPress Core

Changeset 1830 for trunk/wp-settings.php


Ignore:
Timestamp:
10/26/2004 04:03:34 AM (21 years ago)
Author:
rboren
Message:

Do not touch REQUEST_URI if it is already set by the server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r1827 r1830  
    55
    66// Fix for IIS, which doesn't set REQUEST_URI
    7 $_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);
    8 
    9 // Append the query string if it exists and isn't null
    10 if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
    11     $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
     7if (! isset($_SERVER['REQUEST_URI'])) {
     8    $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
     9   
     10    // Append the query string if it exists and isn't null
     11    if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
     12        $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
     13    }
    1214}
    1315
Note: See TracChangeset for help on using the changeset viewer.