Ticket #5292: csrf-empty-post.diff

File csrf-empty-post.diff, 418 bytes (added by Jakub Wilk <django@…>, 17 years ago)
  • middleware.py

     
    4040    """
    4141   
    4242    def process_request(self, request):
    43         if request.POST:
     43        if request.method == 'POST':
    4444            try:
    4545                session_id = request.COOKIES[settings.SESSION_COOKIE_NAME]
    4646            except KeyError:
Back to Top