Code

Opened 7 years ago

Closed 7 years ago

#5762 closed (fixed)

APPEND_SLASH mishandles %23 in URL

Reported by: andrewbadr.etc@… Owned by: nobody
Component: HTTP handling Version: master
Severity: Keywords: URL, %23, #, APPEND_SLASH
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

URLs that contain %23 are handled incorrectly with APPEND_SLASH.

In this example, I am trying to view all items tagged with "C#". Then I try C#X to investigate the bug.

http://localhost:8000/tags/C%23/  --> Correct behavior
http://localhost:8000/tags/C%23   --> URL replaced with http://localhost:8000/tags/C/#/
http://localhost:8000/tags/C%23X/ --> Correct behavior
http://localhost:8000/tags/C%23X  --> URL replaced with http://localhost:8000/tags/c/#X/

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

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

(In [6553]) Fixed #5762 -- Quoted the portions that make up the URL when appending
"www." or adding a trailing slash in common middleware.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.