Opened 9 years ago

Closed 9 years ago

#5984 closed (duplicate)

debug view does not escape variable values

Reported by: Michael Radziej Owned by: nobody
Component: Template system Version: master
Severity: Keywords: autoescape debug
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In the debug view, variable values (and names) are not escaped.

There's an {% autoescape off %} in django/views/debug.py, line 415. I don't understand the reason for it (and then using |escape afterwards, but not line 449 to display the variables). Changing this to {% autoescape on %} fixes the bug.

Change History (1)

comment:1 Changed 9 years ago by Matt McClanahan

Resolution: duplicate
Status: newclosed

Duplicate of #5974.

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