Opened 17 years ago

Closed 17 years ago

#6301 closed (fixed)

HttpResponseRedirect should not be escaping the '*' character

Reported by: samidh Owned by: nobody
Component: HTTP handling Version: dev
Severity: Keywords: HttpResponseRedirect
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

It appears the HttpResponseRedirect class is encoding the '*' character within a URL.

I believe this is a violation of RFC 3986.

Solution: The '*' character should be added to the safe-list so that it is not encoded.

Thanks for your time!

Attachments (1)

encoding.diff (415 bytes ) - added by Simon Greenhill <dev@…> 17 years ago.

Download all attachments as: .zip

Change History (3)

by Simon Greenhill <dev@…>, 17 years ago

Attachment: encoding.diff added

comment:1 by Simon Greenhill <dev@…>, 17 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

Yep, according to that RFC, the * should be kept:

reserved    = gen-delims / sub-delims

gen-delims  = ":" / "/" / "?" / "#" / "[" / "]" / "@"

sub-delims  = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

comment:2 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [7064]) Fixed #6301 -- Added '*' to the characters not converted by iri_to_uri(), as
pointed out by samidh.

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