mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue 11662: Fix vulnerability in urllib/urllib2.
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
This commit is contained in:
parent
b938c8c253
commit
a119df91f3
5 changed files with 74 additions and 0 deletions
|
|
@ -783,6 +783,10 @@ HTTPRedirectHandler Objects
|
|||
is the case, :exc:`HTTPError` is raised. See :rfc:`2616` for details of the
|
||||
precise meanings of the various redirection codes.
|
||||
|
||||
An :class:`HTTPError` exception raised as a security consideration if the
|
||||
HTTPRedirectHandler is presented with a redirected url which is not an HTTP,
|
||||
HTTPS or FTP url.
|
||||
|
||||
|
||||
.. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue