Django

Code

Changeset 3023

Show
Ignore:
Timestamp:
05/31/06 10:10:01 (3 years ago)
Author:
adrian
Message:

Fixed #2006 -- Admin now quotes strings in breadcrumbs and filters. Thanks, mhf@hex.no

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/templates/admin/change_form.html

    r2809 r3023  
    1313     <a href="../../../">{% trans "Home" %}</a> &rsaquo; 
    1414     <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 %} 
    1616</div> 
    1717{% endif %}{% endblock %} 
  • django/trunk/django/contrib/admin/templates/admin/filter.html

    r1443 r3023  
    44{% for choice in choices %} 
    55    <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> 
    77{% endfor %} 
    88</ul>