Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected logging call in CSRF middleware

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e57e29616772fe628333fd71b3f4cf7c2c17eff8 1 parent fdf9602
Luke Plant spookylukey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/middleware/csrf.py
2  django/middleware/csrf.py
View
@@ -153,7 +153,7 @@ def process_view(self, request, callback, callback_args, callback_kwargs):
# we can use strict Referer checking.
referer = request.META.get('HTTP_REFERER')
if referer is None:
- logger.warning('Forbidden (%s): %s' % (REASON_NO_COOKIE, request.path),
+ logger.warning('Forbidden (%s): %s' % (REASON_NO_REFERER, request.path),
extra={
'status_code': 403,
'request': request,
Please sign in to comment.
Something went wrong with that request. Please try again.