Ticket #1144 (closed defect: duplicate)

Opened 4 years ago

Last modified 2 years ago

REQUEST_URI may be encoded but PATH_INFO, get_option('home') are not

Reported by: lev Assigned to: ryan
Priority: normal Milestone:
Component: General Version: 1.5
Severity: major Keywords: has-patch needs-testing
Cc:

Description

Say someone is using unix style home directories in the blog url, like http://www.example.com/~frank is the blog home page.

1.) Telnet into example.com port 80. 2.) Type in the http request "GET /~frank/ HTTP/1.0", hit enter twice after typing that in. 3.) The resulting web page that comes out on the screen has the navigation link to get to the next page look like "http://example.com/~frank/page/2/". This is fine.

4.) However, telnet back into example.com port 80. 5.) Type in this http request, "GET /%7Efrank/ HTTP/1.0", then hit enter twice. 6.) The resulting web page has a navigation link to get to the next page that looks like "http://example.com/~frank/%7Efrank/page/2/". This is a problem.

Attachments

1144.diff (480 bytes) - added by mdawaffe on 08/31/06 02:45:25.
urldecode request_uri?

Change History

03/20/05 19:31:47 changed by lev

  • Patch set to No.

08/31/06 02:45:25 changed by mdawaffe

  • attachment 1144.diff added.

urldecode request_uri?

08/31/06 16:35:57 changed by mdawaffe

  • owner changed from anonymous to ryan.
  • summary changed from Web page links generated by posts_nav_link depends upon encoding of tilde in http request. to REQUEST_URI may be encoded but PATH_INFO, get_option('home') are not.

10/06/06 01:54:35 changed by Nazgul

  • keywords set to has-patch.
  • milestone set to 2.1.

11/29/06 22:40:28 changed by matt

  • milestone changed from 2.1 to 2.2.

02/07/07 21:05:06 changed by foolswisdom

In #3727 Kirin_Lin did a fantastic job of describing another symptom caused by this problems and suggesting the same patch ENV: WP 2.1

02/14/07 02:22:34 changed by rob1n

  • keywords changed from has-patch to has-patch needs-testing.
  • status changed from new to closed.
  • resolution set to duplicate.

After asking rboren, I'm closing this one as duplicate as #3727 is the same issue, and it has a current patch.

02/14/07 03:32:04 changed by rob1n

  • milestone deleted.