Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2056 -- Escaped history messages in admin. Thanks, SmileyChris

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f10af2de24e2ed4df4173c25a11e94207b4a3847 1 parent 02fcfe6
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/templates/admin/object_history.html
View
4 django/contrib/admin/templates/admin/object_history.html
@@ -24,8 +24,8 @@
{% for action in action_list %}
<tr>
<th scope="row">{{ action.action_time|date:_("DATE_WITH_TIME_FULL") }}</th>
- <td>{{ action.user.username }}{% if action.user.first_name %} ({{ action.user.first_name }} {{ action.user.last_name }}){% endif %}</td>
- <td>{{ action.change_message}}</td>
+ <td>{{ action.user.username }}{% if action.user.first_name %} ({{ action.user.first_name|escape }} {{ action.user.last_name|escape }}){% endif %}</td>
+ <td>{{ action.change_message|escape }}</td>
</tr>
{% endfor %}
</tbody>
Please sign in to comment.
Something went wrong with that request. Please try again.