# HG changeset patch # User Pathangi Jatinshravan # Date 1444146714 -28800 # Tue Oct 06 23:51:54 2015 +0800 # Node ID 220a99784ace39b0da08acb74c2e986c8dfbe98a # Parent 3e2218a4e6298418dd6860ed4c2c4f955ec93e7c Fixes issue where one invalid cookie would mean that the rest are ignored. diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -576,8 +576,11 @@ # Start looking for a cookie match = patt.match(str, i) if not match: - # No more cookies - break + while not str[i] == ';': + i += 1 + + i += 1 + continue key, value = match.group("key"), match.group("val") i = match.end(0)