1. Luke Plant
  2. django


uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed eff9d7f

Backport [7521] to 0.91-bugfixes per security policy; announcement and security bugfix release will be forthcoming.

  • Participants
  • Parent commits e741a00
  • Branches 0.91-bugfixes

Comments (0)

Files changed (1)

File django/contrib/admin/views/decorators.py

View file
  • Ignore whitespace
 from django.conf.settings import SECRET_KEY
 from django.models.auth import users
 from django.utils import httpwrappers
+from django.utils.html import escape
 from django.utils.translation import gettext_lazy
 import base64, datetime, md5
 import cPickle as pickle
         post_data = _encode_post_data({})
     return render_to_response('admin/login', {
         'title': _('Log in'),
-        'app_path': request.path,
+        'app_path': escape(request.path),
         'post_data': post_data,
         'error_message': error_message
     }, context_instance=DjangoContext(request))