bpo-30500: Fix urllib.parse.splithost() to parse correctly fragments by postmasters · Pull Request #1849 · python/cpython
postmasters
changed the title
urllib: Simplify splithost by calling into urlparse.
[b.p.o 30500] urllib: Simplify splithost by calling into urlparse.
Mariatta
changed the title
[b.p.o 30500] urllib: Simplify splithost by calling into urlparse.
bpo-30500: urllib: Simplify splithost by calling into urlparse.
vstinner
changed the title
bpo-30500: urllib: Simplify splithost by calling into urlparse.
bpo-30500: Fix urllib.parse.splithost() to parse correctly fragments
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``.
vstinner added a commit that referenced this pull request
Jun 20, 2017vstinner added a commit that referenced this pull request
Jun 20, 2017vstinner added a commit that referenced this pull request
Jun 20, 2017ned-deily pushed a commit to ned-deily/cpython that referenced this pull request
Jul 7, 2017…on#1849) (python#2289) 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 90e01e5) (cherry picked from commit 536c1f1)
larryhastings pushed a commit that referenced this pull request
Jul 12, 2017ned-deily pushed a commit that referenced this pull request
Jul 26, 2017…#1849) (#2292) 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 90e01e5) (cherry picked from commit cc54c1c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters