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

Skip to content

Commit 4cf49bc

Browse files
committed
Minor fix for an Issue #517
1 parent b17bb07 commit 4cf49bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def process(match, repl):
144144
raise SqlmapUserQuitException
145145
elif test[0] not in ("n", "N"):
146146
conf.data = conf.data.replace(CUSTOM_INJECTION_MARK_CHAR, ASTERISK_MARKER)
147-
conf.data = re.sub(r"(?si)((Content-Disposition[^\n]+?name\s*=\s*\"(?P<name>[^\n]+)\").+?)((\r)?\n)+--", functools.partial(process, repl=r"\g<1>%s\g<4>" % CUSTOM_INJECTION_MARK_CHAR), conf.data)
147+
conf.data = re.sub(r"(?si)((Content-Disposition[^\n]+?name\s*=\s*[\"'](?P<name>[^\n]+?)[\"']).+?)(((\r)?\n)+--)", functools.partial(process, repl=r"\g<1>%s\g<4>" % CUSTOM_INJECTION_MARK_CHAR), conf.data)
148148
kb.postHint = POST_HINT.MULTIPART
149149

150150
if not kb.postHint:

0 commit comments

Comments
 (0)