Bug fix (ML) - when cookies have blank expiration time

This commit is contained in:
Miroslav Stampar 2015-08-06 13:07:16 +02:00
parent ce64d9797e
commit 62f35698ee

View File

@ -3831,7 +3831,7 @@ def resetCookieJar(cookieJar):
with open(filename, "w+b") as f: with open(filename, "w+b") as f:
f.write("%s\n" % NETSCAPE_FORMAT_HEADER_COOKIES) f.write("%s\n" % NETSCAPE_FORMAT_HEADER_COOKIES)
for line in lines: for line in lines:
_ = line.split() _ = line.split("\t")
if len(_) == 7: if len(_) == 7:
_[4] = FORCE_COOKIE_EXPIRATION_TIME _[4] = FORCE_COOKIE_EXPIRATION_TIME
f.write("\n%s" % "\t".join(_)) f.write("\n%s" % "\t".join(_))