Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing import to [230]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 49fbe711ccfe302c00ce7b1e5d71848699482899 1 parent 897d24b
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/models/auth.py
1  django/models/auth.py
View
@@ -213,6 +213,7 @@ def _module_get_session_from_cookie(session_cookie_string):
raise SessionDoesNotExist
session_md5, tamper_check = session_cookie_string[:32], session_cookie_string[32:]
if md5.new(session_md5 + SECRET_KEY + 'auth').hexdigest() != tamper_check:
+ from django.core.exceptions import SuspiciousOperation
raise SuspiciousOperation, "User may have tampered with session cookie."
return get_object(session_md5__exact=session_md5, select_related=True)
Please sign in to comment.
Something went wrong with that request. Please try again.