1.1 --- a/XSLForms/Resources/WebResources.py Sat Nov 11 01:42:52 2006 +0000
1.2 +++ b/XSLForms/Resources/WebResources.py Sat Nov 11 01:43:16 2006 +0000
1.3 @@ -180,7 +180,7 @@
1.4 given 'stylesheet_filenames', the 'document' upon which the result will
1.5 be based, the optional parameters as defined in the
1.6 'stylesheet_parameters' dictionary, the optional parameters as defined
1.7 - in the 'stylesheet_parameters' dictionaryand the optional 'references'
1.8 + in the 'stylesheet_parameters' dictionary and the optional 'references'
1.9 to external documents.
1.10 """
1.11
1.12 @@ -246,6 +246,7 @@
1.13
1.14 # Only obtain field information according to the stated method.
1.15
1.16 + content_type = trans.get_content_type()
1.17 method = trans.get_request_method()
1.18 in_page_resource = self.get_in_page_resource(trans)
1.19
1.20 @@ -261,7 +262,7 @@
1.21 parameters = trans.get_fields_from_path()
1.22 form.set_parameters(parameters)
1.23
1.24 - elif method == "POST":
1.25 + elif method == "POST" and content_type.media_type == "application/x-www-form-urlencoded":
1.26
1.27 # Get the fields from the request body.
1.28 # NOTE: The encoding is actually redundant since WebStack produces