Opened 17 years ago
Closed 17 years ago
#4911 closed (duplicate)
reverse not handling escape characters
Reported by: | hattawayd | Owned by: | Jacob |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have one of my url patterns like this:
(r'^plot/(?P<name>\w+)\.(?P<type>\w+)$', image),
but reverse(image, {'name': 'graph', 'type': 'png'})
gives me plot/graph%5C.png
reverse is leaving the \ in as %5C, when it is being used to escape the .
Note:
See TracTickets
for help on using tickets.
See #2977