Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-163

strict_parsing parameter in forms handling.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.8
    • None
    • core
    • None

    Description

      The util.FieldStorage class, plus parse_qs and parse_qsl functions take a parameter called strict_parsing. All the documentation says is:

      The \var

      {strict_parsing}

      argument is not yet implemented.

      Ie., it doesn't even say what it is meant to be for.

      The closest I could find as to what it may be for is from Python cgi.FieldStorage documentation:

      strict_parsing: flag indicating what to do with parsing errors.
      If false (the default), errors are silently ignored.
      If true, errors raise a ValueError exception.

      I don't know though what constitutes an error though.

      This argument has been there back from mod_python 2.X.

      It needs to be investigated as to what the option is meant to do and if it is worthwhile it should be implemented or the parameter removed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            grahamd Graham Phillip Dumpleton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: