[Python-checkins] [python/cpython] cc54c1: bpo-30500: urllib: Simplify splithost by calling i...
GitHub
noreply at github.com
Wed Jul 12 08:51:47 EDT 2017
Branch: refs/heads/3.4
Home: https://github.com/python/cpython
Commit: cc54c1c0d2d05fe7404ba64c53df4b1352ed2262
https://github.com/python/cpython/commit/cc54c1c0d2d05fe7404ba64c53df4b1352ed2262
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-07-12 (Wed, 12 Jul 2017)
Changed paths:
M Lib/test/test_urlparse.py
M Lib/urllib/parse.py
M Misc/ACKS
A Misc/NEWS.d/next/Security/2017-07-11-22-02-51.bpo-30500.wXUrkQ.rst
Log Message:
-----------
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2291)
The current regex based splitting produces a wrong result. For example::
http://abc#@def
Web browsers parse that URL as ``http://abc/#@def``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
(cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)
More information about the Python-checkins
mailing list