mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-22 06:09:02 +00:00
Fixes #1293
This commit is contained in:
@@ -3285,7 +3285,7 @@ def expandMnemonics(mnemonics, parser, args):
|
||||
pointer = pointer.next[char]
|
||||
pointer.current.append(option)
|
||||
|
||||
for mnemonic in mnemonics.split(','):
|
||||
for mnemonic in (mnemonics or "").split(','):
|
||||
found = None
|
||||
name = mnemonic.split('=')[0].replace("-", "").strip()
|
||||
value = mnemonic.split('=')[1] if len(mnemonic.split('=')) > 1 else None
|
||||
|
||||
@@ -1339,6 +1339,9 @@ def _setHTTPExtraHeaders():
|
||||
conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n")
|
||||
|
||||
for headerValue in conf.headers:
|
||||
if not headerValue.strip():
|
||||
continue
|
||||
|
||||
if headerValue.count(':') >= 1:
|
||||
header, value = (_.lstrip() for _ in headerValue.split(":", 1))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user