Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by Ben Caller.