Commits

uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 451b1a9

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

  • Participants
  • Parent commits a5c265b
  • Branches 0.95-bugfixes

Comments (0)

Files changed (1)

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

 from django.contrib.auth.models import User
 from django.contrib.auth import authenticate, login
 from django.shortcuts import render_to_response
+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.html', {
         'title': _('Log in'),
-        'app_path': request.path,
+        'app_path': escape(request.path),
         'post_data': post_data,
         'error_message': error_message
     }, context_instance=template.RequestContext(request))