#12069 closed (duplicate)
The {% url %} parser silently ignores anything after an "as varname" clause
| Reported by: | Johannes Dollinger | Owned by: | Jeff Schenck | 
|---|---|---|---|
| Component: | Template system | Version: | 1.1 | 
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | yes | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
>>> Template("{% url view foo as bar f,_@/2[]$ %}") <django.template.Template object at 0xe1fcf0>
This should raise TemplateSyntaxError.
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
| milestone: | → 1.2 | 
|---|---|
| Triage Stage: | Unreviewed → Accepted | 
comment:2 by , 16 years ago
| Has patch: | set | 
|---|---|
| Owner: | changed from to | 
| Status: | new → assigned | 
comment:4 by , 16 years ago
| Resolution: | → duplicate | 
|---|---|
| Status: | assigned → closed | 
Since #12945 would fix this and is on the 1.2 milestone as a regression from previous behavior, I'm going to close in favor of that.
  Note:
 See   TracTickets
 for help on using tickets.
    
See also #12068