]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-43882 - Mention urllib.parse changes in Whats new section. (GH-26275)
authorSenthil Kumaran <senthil@python.org>
Fri, 21 May 2021 12:29:24 +0000 (05:29 -0700)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 12:29:24 +0000 (05:29 -0700)
* [3.10] bpo-43882 - Mention urllib.parse changes in Whats new section.

* escape the \n chars, ReSTify :rfc:, urllib.parse is a :mod:

* minor formatting.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/whatsnew/3.10.rst

index 570af7f3b618149d1f38e7ba680aa59ab1283d83..2697cf9b6fe873a8c9540d255eeba8fc07e918bd 100644 (file)
@@ -1337,6 +1337,13 @@ functions internally.  For more details, please see their respective
 documentation.
 (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)
 
+The presence of newline or tab characters in parts of a URL allows for some
+forms of attacks. Following the WHATWG specification that updates :rfc:`3986`,
+ASCII newline ``\n``, ``\r`` and tab ``\t`` characters are stripped from the
+URL by the parser in :mod:`urllib.parse` preventing such attacks. The removal
+characters are controlled by a new module level variable
+``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. (See :issue:`43882`)
+
 xml
 ---