Skip to content

Commit

Permalink
Backport [7521] to 0.96-bugfixes per security policy; announcement an…
Browse files Browse the repository at this point in the history
…d security bugfix release will be forthcoming.

git-svn-id: http://code.djangoproject.com/svn/django/branches/0.96-bugfixes@7527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ubernostrum committed May 14, 2008
1 parent 7dd2dd0 commit 7791e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/contrib/admin/views/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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
Expand All @@ -22,7 +23,7 @@ def _display_login_form(request, error_message=''):
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))
Expand Down

0 comments on commit 7791e5c

Please sign in to comment.