You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8eb3d2c
Browse filesBrowse the repository at this point in the historyBrowse files
gh-161569: Check cookie policy before deleting expired cookies in http.cookiejar (#161570)
gh-161569: Check cookie policy before deleting expired cookies in http.cookiejar
An expired Set-Cookie header was allowed to delete a stored cookie using
the Domain and Path attributes taken verbatim from the header, before
CookiePolicy.set_ok() was consulted. A response from one host could
therefore delete cookies belonging to any other domain in a shared jar.
The policy is now consulted before an expired cookie may delete an
existing one, as required by RFC 6265 section 5.3.
Co-authored-by: Victor Stinner <[email protected]>
0 commit comments