Skip to content

Commit

Permalink
Fixed #16009 - typo in CSRF_FAILRE_TEMPLATE.
Browse files Browse the repository at this point in the history
Thanks to adehnert for report and patch.

Though I flail to see what problem it was causing...

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
lukeplant committed May 12, 2011
1 parent 9e8045e commit 66009e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/csrf.py
Expand Up @@ -6,7 +6,7 @@
# this error message, especially for the sake of developers, and there isn't any
# other way of making it available independent of what is in the settings file.

CSRF_FAILRE_TEMPLATE = """
CSRF_FAILURE_TEMPLATE = """
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -94,7 +94,7 @@ def csrf_failure(request, reason=""):
Default view used when request fails CSRF protection
"""
from django.middleware.csrf import REASON_NO_REFERER
t = Template(CSRF_FAILRE_TEMPLATE)
t = Template(CSRF_FAILURE_TEMPLATE)
c = Context({'DEBUG': settings.DEBUG,
'reason': reason,
'no_referer': reason == REASON_NO_REFERER
Expand Down

0 comments on commit 66009e1

Please sign in to comment.