Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6995 closed defect (bug) (fixed)

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

Reported by: singpolyma Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords: atompub
Focuses: Cc:


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 (2)

wp-app.patch (408 bytes) - added by singpolyma 7 years ago.
The Patch
wp-app.php.diff (498 bytes) - added by josephscott 7 years ago.

Download all attachments as: .zip

Change History (7)

@singpolyma7 years ago

The Patch

@josephscott7 years ago

comment:1 @josephscott7 years ago

  • Cc josephscott added

New patch for detecting $_SERVERORIG_PATH_INFO?

comment:2 @singpolyma7 years ago

New patch works equally well.

comment:3 @ryan7 years ago

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

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

comment:4 @ryan7 years ago

  • Milestone set to 2.6

comment:5 @MichaelH7 years ago

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?


Note: See TracTickets for help on using tickets.