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) sys.path.insert(0, dirname)
try: try:
module = __import__(filename[:-3]) module = __import__(filename[:-3].encode(sys.getfilesystemencoding()))
except (ImportError, SyntaxError), msg: except (ImportError, SyntaxError), msg:
raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], msg)) raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], msg))