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
vstinner added a commit that referenced this pull request
vstinner added a commit that referenced this pull request
ned-deily pushed a commit to ned-deily/cpython that referenced this pull request
…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
ned-deily pushed a commit that referenced this pull request
…#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)