bpo-30500: Fix urllib.parse.splithost() to parse correctly fragments by postmasters · Pull Request #1849 · python/cpython

@postmasters postmasters changed the title urllib: Simplify splithost by calling into urlparse. [b.p.o 30500] urllib: Simplify splithost by calling into urlparse.

May 29, 2017

@Mariatta Mariatta changed the title [b.p.o 30500] urllib: Simplify splithost by calling into urlparse. bpo-30500: urllib: Simplify splithost by calling into urlparse.

May 29, 2017

vstinner

vstinner

@vstinner vstinner changed the title bpo-30500: urllib: Simplify splithost by calling into urlparse. bpo-30500: Fix urllib.parse.splithost() to parse correctly fragments

Jun 14, 2017

vadmium

@postmasters @vstinner

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, 2017
… (#2290)

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)

vstinner added a commit that referenced this pull request

Jun 20, 2017
… (#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)

vstinner added a commit that referenced this pull request

Jun 20, 2017
… (#2294)

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)

ned-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, 2017
… (#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 90e01e5)

ned-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)