From f97f5750183599a8988a5853fd63644d3e5b280f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 14 Feb 2013 15:41:27 +0100 Subject: [PATCH] Trivial restyling --- lib/core/target.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/target.py b/lib/core/target.py index 513fee3c7..49b023011 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -88,9 +88,9 @@ def _setRequestParams(): conf.method = HTTPMETHOD.POST def process(match, repl): - if conf.testParameter and match.group("name") not in conf.testParameter: - retVal = match.group(0) - else: + retVal = match.group(0) + + if not (conf.testParameter and match.group("name") not in conf.testParameter): retVal = repl while True: _ = re.search(r"\\g<([^>]+)>", retVal) @@ -98,6 +98,7 @@ def _setRequestParams(): retVal = retVal.replace(_.group(0), match.group(int(_.group(1)) if _.group(1).isdigit() else _.group(1))) else: break + return retVal if re.search(JSON_RECOGNITION_REGEX, conf.data):