Annotation of pkgsrc/lang/python27/patches/patch-Doc_library_cgi.rst, revision 1.1
1.1 ! gutterid 1: $NetBSD$
! 2:
! 3: Fix CVE-2021-23336: Add `separator` argument to parse_qs; warn with default
! 4: Via Fedora:
! 5: https://src.fedoraproject.org/rpms/python2.7/blob/rawhide/f/00359-CVE-2021-23336.patch
! 6:
! 7: --- Doc/library/cgi.rst.orig 2020-04-19 21:13:39.000000000 +0000
! 8: +++ Doc/library/cgi.rst
! 9: @@ -285,10 +285,10 @@ These are useful if you want more contro
! 10: algorithms implemented in this module in other circumstances.
! 11:
! 12:
! 13: -.. function:: parse(fp[, environ[, keep_blank_values[, strict_parsing]]])
! 14: +.. function:: parse(fp[, environ[, keep_blank_values[, strict_parsing[, separator]]]])
! 15:
! 16: Parse a query in the environment or from a file (the file defaults to
! 17: - ``sys.stdin`` and environment defaults to ``os.environ``). The *keep_blank_values* and *strict_parsing* parameters are
! 18: + ``sys.stdin`` and environment defaults to ``os.environ``). The *keep_blank_values*, *strict_parsing* and *separator* parameters are
! 19: passed to :func:`urlparse.parse_qs` unchanged.
! 20:
! 21:
! 22: @@ -316,7 +316,6 @@ algorithms implemented in this module in
! 23: Note that this does not parse nested multipart parts --- use
! 24: :class:`FieldStorage` for that.
! 25:
! 26: -
! 27: .. function:: parse_header(string)
! 28:
! 29: Parse a MIME header (such as :mailheader:`Content-Type`) into a main value and a
CVSweb <webmaster@jp.NetBSD.org>