Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caafa37

Browse files
committed
Fixes #1495
1 parent 8fbac5a commit caafa37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def _setTamperingFunctions():
971971
sys.path.insert(0, dirname)
972972

973973
try:
974-
module = __import__(filename[:-3])
974+
module = __import__(filename[:-3].encode(sys.getfilesystemencoding()))
975975
except (ImportError, SyntaxError), msg:
976976
raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], msg))
977977

0 commit comments

Comments
 (0)