8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412ed22 commit 50ce7fbCopy full SHA for 50ce7fb
django/contrib/admin/views/decorators.py
@@ -3,6 +3,7 @@
3
from django.contrib.auth.models import User
4
from django.contrib.auth import authenticate, login
5
from django.shortcuts import render_to_response
6
+from django.utils.html import escape
7
from django.utils.translation import gettext_lazy
8
import base64, datetime, md5
9
import cPickle as pickle
@@ -22,7 +23,7 @@ def _display_login_form(request, error_message=''):
22
23
post_data = _encode_post_data({})
24
return render_to_response('admin/login.html', {
25
'title': _('Log in'),
- 'app_path': request.path,
26
+ 'app_path': escape(request.path),
27
'post_data': post_data,
28
'error_message': error_message
29
}, context_instance=template.RequestContext(request))
0 commit comments