mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Bug fix (ML) - when cookies have blank expiration time
This commit is contained in:
parent
ce64d9797e
commit
62f35698ee
|
@ -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(_))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user