mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #4020
This commit is contained in:
parent
f947c5f76e
commit
20d875a8ce
4 changed files with 10 additions and 4 deletions
|
|
@ -1970,7 +1970,7 @@ def safeFilepathEncode(filepath):
|
|||
retVal = filepath
|
||||
|
||||
if filepath and six.PY2 and isinstance(filepath, six.text_type):
|
||||
retVal = filepath.encode(sys.getfilesystemencoding() or UNICODE_ENCODING)
|
||||
retVal = getBytes(filepath, sys.getfilesystemencoding() or UNICODE_ENCODING)
|
||||
|
||||
return retVal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue