Skip to content

Commit 50ce7fb

Browse files
committed
Backport [7521] to 0.95-bugfixes per security policy; announcement and security bugfix release will be forthcoming.
git-svn-id: http://code.djangoproject.com/svn/django/branches/0.95-bugfixes@7528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 412ed22 commit 50ce7fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django/contrib/admin/views/decorators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from django.contrib.auth.models import User
44
from django.contrib.auth import authenticate, login
55
from django.shortcuts import render_to_response
6+
from django.utils.html import escape
67
from django.utils.translation import gettext_lazy
78
import base64, datetime, md5
89
import cPickle as pickle
@@ -22,7 +23,7 @@ def _display_login_form(request, error_message=''):
2223
post_data = _encode_post_data({})
2324
return render_to_response('admin/login.html', {
2425
'title': _('Log in'),
25-
'app_path': request.path,
26+
'app_path': escape(request.path),
2627
'post_data': post_data,
2728
'error_message': error_message
2829
}, context_instance=template.RequestContext(request))

0 commit comments

Comments
 (0)