Opened 11 years ago

Closed 11 years ago

#3419 closed (fixed)

exception value not html-escaped in exception view

Reported by: webograph@… Owned by: nobody
Component: Uncategorized Version: 0.95
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


when raising an exception whose exception value contains html metachars like "<", these are not properly escaped in the exception view.


# Create your view here.
from myapp.models import mydbobject
function throwexc(request):
    raise Exception, mydbobject.objects.all()

gives you:

Exception at /throwexc/
[<foo>, <bar>]
Request Method: GET
Request URL: http://localhost:8000/throwexc/
Exception Type: Exception:
Exception Value: [, ]

([, ] having html source code [<foo>, <bar>])

Change History (2)

comment:1 Changed 11 years ago by Gary Wilson <gary.wilson@…>

Triage Stage: UnreviewedAccepted

comment:2 Changed 11 years ago by durdinator

Resolution: fixed
Status: newclosed

The exception value is properly escaped in the trunk (tested at 6206).

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