Closes: http://bugs.debian.org/481164
Comment:
 Upstream patch grabbed from http://code.djangoproject.com/changeset/7528?format=diff&new=7528
 .
 Fixes a cross-scripting vulnerability (CVE-2008-2302).

--- python-django.orig/django/contrib/admin/views/decorators.py (revision 3360)
+++ python-django/django/contrib/admin/views/decorators.py (revision 7528)
@@ -4,4 +4,5 @@
 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
@@ -23,5 +24,5 @@
     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
