[3.4] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849)#2291
[3.4] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849)#2291larryhastings merged 1 commit into
Conversation
|
@larryhastings: Larry, would you mind to review and merge this fix please? It fixes an important security vulnerability: cc @ned-deily. |
Sorry, something went wrong.
|
I tested manually that "./python -m test test_urlparse" pass. Sadly, 3.4 has no pre-commit CI yet. |
Sorry, something went wrong.
|
I accepted a PR from Serhiy and now there's a conflict from Misc/NEWS. Do you mind changing it to NEWS.d? |
Sorry, something went wrong.
|
I'll accept this PR once you fix the conflicts. |
Sorry, something went wrong.
|
Victor: "I tested manually that "./python -m test test_urlparse" pass. Sadly, 3.4 has no pre-commit CI yet." I proposed PR #2475 to add CIs. Larry: "I accepted a PR from Serhiy and now there's a conflict from Misc/NEWS. Do you mind changing it to NEWS.d?" Sure, I created a NEWS.d entry and rebased my change. |
Sorry, something went wrong.
|
I'm willing to consider PR 2475 for 3.4, but we can discuss it over there. |
Sorry, something went wrong.
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 hostis
abc, the path is/, and the fragment is#@def.(cherry picked from commit 90e01e5)