summaryrefslogtreecommitdiffstats
path: root/Lib/Cookie.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/Cookie.py')
-rw-r--r--Lib/Cookie.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py
index fc6d9f6..b4f9db4 100644
--- a/Lib/Cookie.py
+++ b/Lib/Cookie.py
@@ -534,6 +534,8 @@ _CookiePattern = re.compile(
r"(?P<val>" # Start of group 'val'
r'"(?:[^\\"]|\\.)*"' # Any doublequoted string
r"|" # or
+ r"\w{3},\s[\w\d-]{9,11}\s[\d:]{8}\sGMT" # Special case for "expires" attr
+ r"|" # or
""+ _LegalCharsPatt +"*" # Any word or empty string
r")" # End of group 'val'
r"\s*;?" # Probably ending in a semi-colon