Ticket #6995 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: singpolyma Owned by: 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 Download (408 bytes) - added by singpolyma 4 years ago.
The Patch
wp-app.php.diff Download (498 bytes) - added by josephscott 4 years ago.

Change History

The Patch

  • Cc josephscott added

New patch for detecting $_SERVERORIG_PATH_INFO?

New patch works equally well.

comment:3   ryan4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:4   ryan4 years ago

  • Milestone set to 2.6

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

Note: See TracTickets for help on using tickets.