]> granicus.if.org Git - python/commit
bpo-35647: Fix path check in cookiejar (#11436) (#12277)
authorXtreak <tir.karthi@gmail.com>
Sat, 16 Mar 2019 23:42:11 +0000 (05:12 +0530)
committerlarryhastings <larry@hastings.org>
Sat, 16 Mar 2019 23:42:11 +0000 (16:42 -0700)
commit382981b25092b5e9285f1e4894142af1e8f2ca86
treeeedf2d201585d5442ebaca5c80756d77403e0b8a
parentc0d95113b070799679bcb9dc49d4960d82e8bb08
bpo-35647: Fix path check in cookiejar (#11436) (#12277)

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