mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Patch for an Issue #896
This commit is contained in:
parent
6f45596f28
commit
4d5b48b2ae
3 changed files with 17 additions and 23 deletions
|
|
@ -41,7 +41,7 @@ def cmdLineParser():
|
|||
|
||||
checkSystemEncoding()
|
||||
|
||||
_ = getUnicode(os.path.normpath(sys.argv[0]), system=True)
|
||||
_ = getUnicode(os.path.normpath(sys.argv[0]), encoding=sys.getfilesystemencoding())
|
||||
|
||||
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
|
||||
"\"%s\"" % _ if " " in _ else _)
|
||||
|
|
@ -788,7 +788,7 @@ def cmdLineParser():
|
|||
advancedHelp = True
|
||||
|
||||
for arg in sys.argv:
|
||||
argv.append(getUnicode(arg, system=True))
|
||||
argv.append(getUnicode(arg, encoding=sys.stdin.encoding))
|
||||
|
||||
checkDeprecatedOptions(argv)
|
||||
|
||||
|
|
@ -837,7 +837,7 @@ def cmdLineParser():
|
|||
break
|
||||
|
||||
for arg in shlex.split(command):
|
||||
argv.append(getUnicode(arg, system=True))
|
||||
argv.append(getUnicode(arg, encoding=sys.stdin.encoding))
|
||||
|
||||
# Hide non-basic options in basic help case
|
||||
for i in xrange(len(argv)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue