]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35647: Fix path check in cookiejar (#11436) (#12278)
authorXtreak <tir.karthi@gmail.com>
Sat, 16 Mar 2019 22:54:03 +0000 (04:24 +0530)
committerlarryhastings <larry@hastings.org>
Sat, 16 Mar 2019 22:54:03 +0000 (15:54 -0700)
commite260f092cd0d8975c777e73ca6fb549d59b5d452
tree568252a92aaf0416d9467262d2a0ef72b5e755d5
parent62d36547f97210a26cc6051da78714fd078e158c
bpo-35647: Fix path check in cookiejar (#11436) (#12278)

* 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)
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]