mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-12-01 14:03:52 +03:00
Fixes #1495
This commit is contained in:
parent
8fbac5a99e
commit
caafa377a6
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user