Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#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


>>> Template("{% url view foo as bar f,_@/2[]$ %}")
<django.template.Template object at 0xe1fcf0>

This should raise TemplateSyntaxError.

Attachments (1)

url_parser_syntax.diff (719 bytes) - added by Jeff Schenck 9 years ago.
Patch for url template tag parsing

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by Russell Keith-Magee

milestone: 1.2
Triage Stage: UnreviewedAccepted

See also #12068

Changed 9 years ago by Jeff Schenck

Attachment: url_parser_syntax.diff added

Patch for url template tag parsing

comment:2 Changed 9 years ago by Jeff Schenck

Has patch: set
Owner: changed from nobody to Jeff Schenck
Status: newassigned

comment:3 Changed 9 years ago by Chris Beaven

Needs tests: set

This would also be fixed by my patch in #12945.

comment:4 Changed 9 years ago by James Bennett

Resolution: duplicate
Status: assignedclosed

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.

comment:5 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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