]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35647: Fix path check in cookiejar (GH-11436)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Mar 2019 17:30:35 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Sun, 10 Mar 2019 17:30:35 +0000 (10:30 -0700)
commit97c7d78fda49e03fc773c171ce0c736d02bb73f5
treebedaeafb17461a10490812bdcaa4e47fe0a1baab
parent87f5255cdc9aa737d445b5813e52c41e5266a862
bpo-35647: Fix path check in cookiejar (GH-11436)

* Refactor cookie path check as per RFC 6265

* Add tests for prefix match of path

* Add news entry

* Fix set_ok_path and refactor tests

* Use slice for last letter
(cherry picked from commit 0e1f1f01058bd4a9b98cfe443214adecc019a38c)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
Lib/http/cookiejar.py
Lib/test/test_http_cookiejar.py
Misc/NEWS.d/next/Library/2018-12-30-14-35-19.bpo-35121.oWmiGU.rst [new file with mode: 0644]