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

Skip to content

Commit 2fe6aea

Browse files
committed
Minor fix
1 parent 825aa4b commit 2fe6aea

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

lib/core/target.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ def process(match, repl):
136136
conf.data = re.sub(r"(?si)(Content-Disposition.+?)((\r)?\n--)", r"\g<1>%s\g<2>" % CUSTOM_INJECTION_MARK_CHAR, conf.data)
137137
kb.postHint = POST_HINT.MULTIPART
138138

139-
elif CUSTOM_INJECTION_MARK_CHAR in conf.data: # later processed
140-
pass
141-
142-
else:
143-
place = PLACE.POST
139+
if not kb.postHint:
140+
if CUSTOM_INJECTION_MARK_CHAR in conf.data: # later processed
141+
pass
142+
else:
143+
place = PLACE.POST
144144

145-
conf.parameters[place] = conf.data
146-
paramDict = paramToDict(place, conf.data)
145+
conf.parameters[place] = conf.data
146+
paramDict = paramToDict(place, conf.data)
147147

148-
if paramDict:
149-
conf.paramDict[place] = paramDict
150-
testableParameters = True
148+
if paramDict:
149+
conf.paramDict[place] = paramDict
150+
testableParameters = True
151151

152152
kb.processUserMarks = True if kb.postHint else kb.processUserMarks
153153

0 commit comments

Comments
 (0)