Opened 15 years ago

Closed 15 years ago

Last modified 13 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

Description

>>> 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 15 years ago.
Patch for url template tag parsing

Download all attachments as: .zip

Change History (6)

comment:1 by Russell Keith-Magee, 15 years ago

milestone: 1.2
Triage Stage: UnreviewedAccepted

See also #12068

by Jeff Schenck, 15 years ago

Attachment: url_parser_syntax.diff added

Patch for url template tag parsing

comment:2 by Jeff Schenck, 15 years ago

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

comment:3 by Chris Beaven, 15 years ago

Needs tests: set

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

comment:4 by James Bennett, 15 years ago

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 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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