summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-05-12 03:03:16 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-05-12 03:03:16 +0000
commit71a7466dd67bd7cf88b4ce06535d8db0af6c7200 (patch)
treecfb1a4665ff9a2dd772b4ac1e5517f9c0d338db5
parent4d26f6512c82f258795953fae799efce3a79fac9 (diff)
Fixed #16009 - typo in CSRF_FAILRE_TEMPLATE.
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
-rw-r--r--django/views/csrf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/csrf.py b/django/views/csrf.py
index 038b0b7020..80cc21d528 100644
--- a/django/views/csrf.py
+++ b/django/views/csrf.py
@@ -6,7 +6,7 @@ from django.conf import settings
# 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>
@@ -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