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

Skip to content

Commit f97f575

Browse files
committed
Trivial restyling
1 parent 605c5b0 commit f97f575

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/target.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,17 @@ def _setRequestParams():
8888
conf.method = HTTPMETHOD.POST
8989

9090
def process(match, repl):
91-
if conf.testParameter and match.group("name") not in conf.testParameter:
92-
retVal = match.group(0)
93-
else:
91+
retVal = match.group(0)
92+
93+
if not (conf.testParameter and match.group("name") not in conf.testParameter):
9494
retVal = repl
9595
while True:
9696
_ = re.search(r"\\g<([^>]+)>", retVal)
9797
if _:
9898
retVal = retVal.replace(_.group(0), match.group(int(_.group(1)) if _.group(1).isdigit() else _.group(1)))
9999
else:
100100
break
101+
101102
return retVal
102103

103104
if re.search(JSON_RECOGNITION_REGEX, conf.data):

0 commit comments

Comments
 (0)