Permalink
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...
1 parent fdf9602 commit e57e29616772fe628333fd71b3f4cf7c2c17eff8 @spookylukey spookylukey committed Feb 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/middleware/csrf.py
@@ -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,

0 comments on commit e57e296

Please sign in to comment.