File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292from lib .core .settings import DUMMY_USER_INJECTION
9393from lib .core .settings import DYNAMICITY_MARK_LENGTH
9494from lib .core .settings import ERROR_PARSING_REGEXES
95+ from lib .core .settings import FORCE_COOKIE_EXPIRATION_TIME
9596from lib .core .settings import FORM_SEARCH_REGEX
9697from lib .core .settings import GENERIC_DOC_ROOT_DIRECTORY_NAMES
9798from lib .core .settings import HASHDB_MILESTONE_VALUE
@@ -3510,7 +3511,7 @@ def resetCookieJar(cookieJar):
35103511 for line in lines :
35113512 _ = line .split ()
35123513 if len (_ ) == 7 :
3513- _ [4 ] = "9999999999" # The UNIX time that the variable will expire on
3514+ _ [4 ] = FORCE_COOKIE_EXPIRATION_TIME
35143515 f .write ("\n %s" % "\t " .join (_ ))
35153516
35163517 cookieJar .filename = filename
Original file line number Diff line number Diff line change 433433# Default delimiter in cookie values
434434DEFAULT_COOKIE_DELIMITER = ';'
435435
436+ # Unix timestamp used for forcing cookie expiration when provided with --load-cookies
437+ FORCE_COOKIE_EXPIRATION_TIME = "9999999999"
438+
436439# Skip unforced HashDB flush requests below the threshold number of cached items
437440HASHDB_FLUSH_THRESHOLD = 32
438441
You can’t perform that action at this time.
0 commit comments