[wp-trac] [WordPress Trac] #10169: REQUEST_URI bug on IIS7
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 15 09:55:45 GMT 2009
#10169: REQUEST_URI bug on IIS7
--------------------------+-------------------------------------------------
Reporter: bforchhammer | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.7.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Hi,
there's a bug on IIS7 which sets `$_SERVER['REQUEST_URI']` to "/index.php"
instead of leaving it empty (as afaik it should be on IIS):
[http://support.microsoft.com/?kbid=954946 KB954946]
The value of `$_SERVER['HTTP_X_ORIGINAL_URL']` contains the right URI and
should be used instead of `"/index.php"`.
Usually `REQUEST_URI` is set to the value of `HTTP_X_ORIGINAL_URL` in
`wp_settings.php`, [/browser/trunk/wp-settings.php#L67 line 67], but
because that block is protected with a ` if ( empty(
$_SERVER['REQUEST_URI'] ) ) ` it does not get used on our server.
I know there's a
[http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d0343911-1775
-4aef-8c99-5f13862ac386 patch for KB954946] but not all wordpress users
might be able to apply patches to their servers; is there any reason why
we cannot use `HTTP_X_ORIGINAL_URL` right away if it is set and not empty?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10169>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list