Ticket #5292: csrf-empty-post.diff
File csrf-empty-post.diff, 418 bytes (added by , 17 years ago) |
---|
-
middleware.py
40 40 """ 41 41 42 42 def process_request(self, request): 43 if request. POST:43 if request.method == 'POST': 44 44 try: 45 45 session_id = request.COOKIES[settings.SESSION_COOKIE_NAME] 46 46 except KeyError: