Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cab3d4

Browse files
committed
Minor update
1 parent 4f2981f commit 6cab3d4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
from lib.core.settings import NULL
108108
from lib.core.settings import PARAMETER_AMP_MARKER
109109
from lib.core.settings import PARAMETER_SEMICOLON_MARKER
110+
from lib.core.settings import PARTIAL_HEX_VALUE_MARKER
110111
from lib.core.settings import PARTIAL_VALUE_MARKER
111112
from lib.core.settings import PAYLOAD_DELIMITER
112113
from lib.core.settings import PLATFORM
@@ -3326,10 +3327,10 @@ def hashDBRetrieve(key, unserialize=False, checkConf=False):
33263327
"""
33273328

33283329
_ = "%s%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key, HASHDB_MILESTONE_VALUE)
3329-
_ = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any([conf.flushSession, conf.freshQueries])) else None
3330-
if not kb.inferenceMode and not kb.fileReadMode and _ and PARTIAL_VALUE_MARKER in _:
3331-
_ = None
3332-
return _
3330+
retVal = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any((conf.flushSession, conf.freshQueries))) else None
3331+
if not kb.inferenceMode and not kb.fileReadMode and any(_ in (retVal or "") for _ in (PARTIAL_VALUE_MARKER, PARTIAL_HEX_VALUE_MARKER)):
3332+
retVal = None
3333+
return retVal
33333334

33343335
def resetCookieJar(cookieJar):
33353336
"""

0 commit comments

Comments
 (0)