Opened 18 years ago
Closed 17 years ago
#4075 closed (fixed)
The url template tag incorrectly includes the '?' character found in a urls.py regex when producing urls.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | url question-mark regex template | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The template tag
{% url example_edit %}
produces
http://localhost:8000/wiki/example/add/?
for the urls.py entry
url(r'^wiki/example/add/?$', example_edit, name="example_edit")
it should produce
http://localhost:8000/wiki/example/add/
since the '?' is a regex operator in this context.
Change History (5)
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
I'll mark as a dupe, #2977 addresses this.
comment:4 by , 17 years ago
Cc: | added |
---|---|
Component: | Template system → Cache system |
Keywords: | %0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AExcellent+web+site+I+will+be+visiting+ofteno added; url question-mark regex template removed |
Resolution: | duplicate |
Status: | closed → reopened |
Summary: | The url template tag incorrectly includes the '?' character found in a urls.py regex when producing urls. → %250D%250A%250D%250A%250D%250A%250D%250A%250D%250A%250D%250AExcellent%2Bweb%2Bsite%2BI%2Bwill%2Bbe%2Bvisiting%2Bofteno |
Triage Stage: | Accepted → Design decision needed |
Version: | SVN → unicode |
%25250D%25250A%25250D%25250A%25250D%25250A%25250D%25250A%25250D%25250A%25250D%25250AExcellent%252Bweb%252Bsite%252BI%252Bwill%252Bbe%252Bvisiting%252Bofteno
comment:5 by , 17 years ago
Cc: | removed |
---|---|
Component: | Cache system → Template system |
Keywords: | url question-mark regex template added; %0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AExcellent+web+site+I+will+be+visiting+ofteno removed |
Resolution: | → fixed |
Status: | reopened → closed |
Summary: | %250D%250A%250D%250A%250D%250A%250D%250A%250D%250A%250D%250AExcellent%2Bweb%2Bsite%2BI%2Bwill%2Bbe%2Bvisiting%2Bofteno → The url template tag incorrectly includes the '?' character found in a urls.py regex when producing urls. |
Triage Stage: | Design decision needed → Accepted |
Version: | unicode → SVN |
Reverted blog spam
Note:
See TracTickets
for help on using tickets.
I'm pretty sure this is actually a problem with the current
core.urlresolvers.reverse
- see #2977