Opened 11 years ago

Closed 11 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: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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/

Change History (1)

comment:1 Changed 11 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top