Ticket #6995 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

wp-app.php picking up query string on some hosts

Reported by: singpolyma Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version:
Severity: normal Keywords: atompub
Cc: josephscott

Description

Some hosts (such as Dreamhost) pass the query string along with the $_SERVERPATH_INFO?. These hosts pass another value $_SERVERORIG_PATH_INFO?. The attached patch will use ORIG_PATH_INFO in wp-app.php where applicable, so that query string data doesn't leak in and confuse the path logic.

Attachments

wp-app.patch (408 bytes) - added by singpolyma on 05/19/08 15:40:55.
The Patch
wp-app.php.diff (498 bytes) - added by josephscott on 05/20/08 14:01:02.

Change History

05/19/08 15:40:55 changed by singpolyma

  • attachment wp-app.patch added.

The Patch

05/20/08 14:01:02 changed by josephscott

  • attachment wp-app.php.diff added.

05/20/08 14:02:29 changed by josephscott

  • cc set to josephscott.

New patch for detecting $_SERVERORIG_PATH_INFO?

06/02/08 18:36:34 changed by singpolyma

New patch works equally well.

06/02/08 20:38:40 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [8031]) Use ORIG_PATH_INFO, if available. Props singpolyma. fixes #6995

06/02/08 20:38:51 changed by ryan

  • milestone set to 2.6.

06/02/08 20:56:44 changed by MichaelH

Is this the same thing that causes the problem with step=2 being thrown into the Blog and WordPress urls as reported on these threads?

http://wordpress.org/support/topic/179334 http://wordpress.org/support/topic/177004 http://wordpress.org/support/topic/175554 http://wordpress.org/support/topic/179845