mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-27 16:39:54 +03:00
Fix duplicate paramDict elements bug
This commit is contained in:
parent
8b88bb82d3
commit
e4249bfd9d
|
@ -310,7 +310,7 @@ def _setRequestParams():
|
||||||
conf.paramDict[place]["%s #%d%s" % (header, i + 1, kb.customInjectionMark)] = "%s,%s" % (header, "".join("%s%s" % (parts[j], kb.customInjectionMark if i == j else "") for j in xrange(len(parts))))
|
conf.paramDict[place]["%s #%d%s" % (header, i + 1, kb.customInjectionMark)] = "%s,%s" % (header, "".join("%s%s" % (parts[j], kb.customInjectionMark if i == j else "") for j in xrange(len(parts))))
|
||||||
conf.httpHeaders[index] = (header, value.replace(kb.customInjectionMark, ""))
|
conf.httpHeaders[index] = (header, value.replace(kb.customInjectionMark, ""))
|
||||||
else:
|
else:
|
||||||
parts = value.split(kb.customInjectionMark)
|
parts = [_ for _ in value.split(kb.customInjectionMark) if _]
|
||||||
|
|
||||||
for i in xrange(len(parts) - 1):
|
for i in xrange(len(parts) - 1):
|
||||||
name = None
|
name = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user