Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 71a7466dd67bd7cf88b4ce06535d8db0af6c7200 1 parent 4d26f65
Luke Plant authored May 12, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/views/csrf.py
4  django/views/csrf.py
@@ -6,7 +6,7 @@
6 6
 # this error message, especially for the sake of developers, and there isn't any
7 7
 # other way of making it available independent of what is in the settings file.
8 8
 
9  
-CSRF_FAILRE_TEMPLATE = """
  9
+CSRF_FAILURE_TEMPLATE = """
10 10
 <!DOCTYPE html>
11 11
 <html lang="en">
12 12
 <head>
@@ -94,7 +94,7 @@ def csrf_failure(request, reason=""):
94 94
     Default view used when request fails CSRF protection
95 95
     """
96 96
     from django.middleware.csrf import REASON_NO_REFERER
97  
-    t = Template(CSRF_FAILRE_TEMPLATE)
  97
+    t = Template(CSRF_FAILURE_TEMPLATE)
98 98
     c = Context({'DEBUG': settings.DEBUG,
99 99
                  'reason': reason,
100 100
                  'no_referer': reason == REASON_NO_REFERER

0 notes on commit 71a7466

Please sign in to comment.
Something went wrong with that request. Please try again.