~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/web/api.py

  • Committer: Bazaar Package Importer
  • Author(s): Jesus Climent
  • Date: 2006-11-13 22:46:59 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20061113224659-69tpj4wxidtx2y9t
Tags: 0.10.2-1
* New upstream release, fixing 3 RC bugs introduced at 0.10.1, which were
  not triggered in normal conditions.
  - Fixes deadlock when using authz_file config option
  - Makes the CSRF code play nice with the XmlRpcPlugin
  - Fixes Timeline breakage after svn commit when using sqlite

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        args = _RequestArgs()
172
172
 
173
173
        fp = self.environ['wsgi.input']
 
174
 
 
175
        # Avoid letting cgi.FieldStorage consume the input stream when the
 
176
        # request does not contain form data
174
177
        ctype = self.get_header('Content-Type')
175
178
        if ctype:
176
 
            # Avoid letting cgi.FieldStorage consume the input stream when the
177
 
            # request does not contain form data
178
179
            ctype, options = cgi.parse_header(ctype)
179
 
            if ctype not in ('application/x-www-form-urlencoded',
180
 
                             'multipart/form-data'):
181
 
                fp = StringIO('')
 
180
        if ctype not in ('application/x-www-form-urlencoded',
 
181
                         'multipart/form-data'):
 
182
            fp = StringIO('')
182
183
 
183
184
        fs = cgi.FieldStorage(fp, environ=self.environ, keep_blank_values=True)
184
185
        if fs.list: