mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch for an Issue #1159 (undo commit with single-quotes problem on windows)
This commit is contained in:
parent
38011743bb
commit
247384858e
|
@ -788,16 +788,7 @@ def cmdLineParser():
|
|||
prompt = False
|
||||
advancedHelp = True
|
||||
|
||||
_ = sys.argv
|
||||
|
||||
# Python on Windows has problems with quote/whitespace cases like: python -c "import sys; print sys.argv" --dummy='foo: bar' # ['-c', "--dummy='foo:", "bar'"]
|
||||
if IS_WIN:
|
||||
try:
|
||||
_ = shlex.split(" ".join(sys.argv), posix=False)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
for arg in _:
|
||||
for arg in sys.argv:
|
||||
argv.append(getUnicode(arg, encoding=sys.getfilesystemencoding()))
|
||||
|
||||
checkDeprecatedOptions(argv)
|
||||
|
|
Loading…
Reference in New Issue
Block a user