Opened 14 years ago
Closed 14 years ago
#16020 closed Bug (duplicate)
urlize() incorrectly escapes query string escapes
Reported by: | Chris Lamb | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
>>> from django.utils.html import urlize >>> urlize('http://site.com/?foo%20bar') u'<a href="http://site.com/?foo%2520bar">http://site.com/?foo%20bar</a>' # ^^^^^ >>> urlize('www.site.com/?foo%20bar') u'<a href="http://www.site.com/?foo%2520bar">www.site.com/?foo%20bar</a>' # ^^^^^
Patch attached.
Attachments (2)
Change History (7)
by , 14 years ago
Attachment: | 08-urlize-encoded-spaces-correctly-16020.diff added |
---|
comment:1 by , 14 years ago
Easy pickings: | set |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Type: | Uncategorized → Bug |
---|
by , 14 years ago
Attachment: | urlize_test.diff added |
---|
comment:3 by , 14 years ago
Needs tests: | unset |
---|
comment:4 by , 14 years ago
comment:5 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is actually a duplicate of #9655.
Note:
See TracTickets
for help on using tickets.
Discussion of this issue on bugs.python.org:
http://bugs.python.org/issue2637