Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2006 -- Admin now quotes strings in breadcrumbs and filters. T…

…hanks, mhf@hex.no

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ea59344d725adc5c94a0ab2c1986c6a033329ad9 1 parent 9030236
Adrian Holovaty authored May 31, 2006
2  django/contrib/admin/templates/admin/change_form.html
@@ -12,7 +12,7 @@
12 12
 <div class="breadcrumbs">
13 13
      <a href="../../../">{% trans "Home" %}</a> &rsaquo;
14 14
      <a href="../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
15  
-     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|striptags|truncatewords:"18" }}{% endif %}
  15
+     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18"|escape }}{% endif %}
16 16
 </div>
17 17
 {% endif %}{% endblock %}
18 18
 {% block content %}<div id="content-main">
2  django/contrib/admin/templates/admin/filter.html
@@ -3,6 +3,6 @@
3 3
 <ul>
4 4
 {% for choice in choices %}
5 5
     <li{% if choice.selected %} class="selected"{% endif %}>
6  
-    <a href="{{ choice.query_string }}">{{ choice.display }}</a></li>
  6
+    <a href="{{ choice.query_string }}">{{ choice.display|escape }}</a></li>
7 7
 {% endfor %}
8 8
 </ul>

0 notes on commit ea59344

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