Skip to content
Browse files

Changed debug error view to escape the exception value, so that value…

…s in angle brackets aren't hidden by browsers

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7332b13 commit 170c3be4b3019cb9b1476d923bc8ddd5e84c1ebd @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/debug.py
View
2 django/views/debug.py
@@ -280,7 +280,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<div id="summary">
<h1>{{ exception_type }} at {{ request.path }}</h1>
- <h2>{{ exception_value }}</h2>
+ <h2>{{ exception_value|escape }}</h2>
<table class="meta">
<tr>
<th>Request Method:</th>

0 comments on commit 170c3be

Please sign in to comment.
Something went wrong with that request. Please try again.