From eb1bfc20cb3d5c4f66a7c9ecc0ea1916c379f85c Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 26 Mar 2013 15:36:44 +0100 Subject: [PATCH] Update related to the last commit --- lib/core/target.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/target.py b/lib/core/target.py index 587ac2919..8aa837d07 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -136,6 +136,10 @@ def _setRequestParams(): conf.data = re.sub(r"(?si)(Content-Disposition.+?)((\r)?\n--)", r"\g<1>%s\g<2>" % CUSTOM_INJECTION_MARK_CHAR, conf.data) kb.postHint = POST_HINT.MULTIPART + if kb.postHint: + if CUSTOM_INJECTION_MARK_CHAR not in conf.data: # in case that no usable parameter values has been found + kb.postHint = None + if not kb.postHint: if CUSTOM_INJECTION_MARK_CHAR in conf.data: # later processed pass