Author: mtredinnick
Date: 2008-09-17 04:02:25 -0500 (Wed, 17 Sep 2008)
New Revision: 9064
Modified:
django/trunk/django/core/handlers/modpython.py
Log:
Fixed #9014 -- Check that we really are processing a POST before processing
POST data. Some nice debugging form aaron to track this down.
Modified: django/trunk/django/core/handlers/modpython.py
===================================================================
--- django/trunk/django/core/handlers/modpython.py 2008-09-17 08:59:55 UTC
(rev 9063)
+++ django/trunk/django/core/handlers/modpython.py 2008-09-17 09:02:25 UTC
(rev 9064)
@@ -75,6 +75,10 @@
def _load_post_and_files(self):
"Populates self._post and self._files"
+ if self.method != 'POST':
+ self._post, self._files = http.QueryDict('',
encoding=self._encoding), datastructures.MultiValueDict()
+ return
+
if 'content-type' in self._req.headers_in and
self._req.headers_in['content-type'].startswith('multipart'):
self._raw_post_data = ''
try:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---