• Guido van Rossum's avatar
    Patch by Jim Fulton, who writes: · f5745008
    Guido van Rossum yazdı
    """
    The FieldStorage constructor calls the read_multi method.  The read_multi
    method creates new FieldStorage objects, re-invoking the constructor
    (on the new objects).  The problem is that the 'environ', 'keep_blank_values',
    and 'strict_parsing' arguments originally passed to the constructor are not
    propigated to the new object constructors.  This causes os.environ to be used,
    leading to a miss-handling of the parts.
    
    I fixed this by passing these arguments to read_multi and then on to the
    constructor.  See the context diff below.
    """
    f5745008
cgi.py 45.2 KB