Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
escape the \n chars, ReSTify :rfc:, urllib.parse is a :mod:
  • Loading branch information
gpshead authored May 21, 2021
commit 6227fcfb406c6d8a5d2a5d8f4179345b2e5d6a61
10 changes: 5 additions & 5 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1338,11 +1338,11 @@ 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 :func:`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`)
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
---
Expand Down