Django

Code

Changeset 3129

Show
Ignore:
Timestamp:
06/14/06 09:56:19 (2 years ago)
Author:
adrian
Message:

Fixed #2152 -- Now HTML-escaping user.first_name in admin/base.html template

Files:

Legend:

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

    r3121 r3129  
    2222        </div> 
    2323        {% if not user.is_anonymous %}{% if user.is_staff %} 
    24         <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="doc/">{% trans 'Documentation' %}</a> / <a href="password_change/">{% trans 'Change password' %}</a> / <a href="logout/">{% trans 'Log out' %}</a>{% endblock %}</div> 
     24        <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="doc/">{% trans 'Documentation' %}</a> / <a href="password_change/">{% trans 'Change password' %}</a> / <a href="logout/">{% trans 'Log out' %}</a>{% endblock %}</div> 
    2525        {% endif %}{% endif %} 
    2626        {% block nav-global %}{% endblock %}