Django

Code

Changeset 9064

Show
Ignore:
Timestamp:
09/17/08 04:02:25 (4 months ago)
Author:
mtredinnick
Message:

Fixed #9014 -- Check that we really are processing a POST before processing
POST data. Some nice debugging form aaron to track this down.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/modpython.py

    r8748 r9064  
    7676    def _load_post_and_files(self): 
    7777        "Populates self._post and self._files" 
     78        if self.method != 'POST': 
     79            self._post, self._files = http.QueryDict('', encoding=self._encoding), datastructures.MultiValueDict() 
     80            return 
     81 
    7882        if 'content-type' in self._req.headers_in and self._req.headers_in['content-type'].startswith('multipart'): 
    7983            self._raw_post_data = ''