This commit is contained in:
Miroslav Stampar 2015-10-28 10:29:12 +01:00
parent 8fbac5a99e
commit caafa377a6

View File

@ -971,7 +971,7 @@ def _setTamperingFunctions():
sys.path.insert(0, dirname)
try:
module = __import__(filename[:-3])
module = __import__(filename[:-3].encode(sys.getfilesystemencoding()))
except (ImportError, SyntaxError), msg:
raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], msg))