From ce64d9797e7feb2c7006acaba00ac88fef9898a5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 Aug 2015 11:10:15 +0200 Subject: [PATCH] Fixes #1322 --- sqlmap.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sqlmap.py b/sqlmap.py index ad1451556..6bb12a56f 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -69,6 +69,15 @@ def main(): try: paths.SQLMAP_ROOT_PATH = modulePath() + + try: + os.path.isdir(paths.SQLMAP_ROOT_PATH) + except UnicodeEncodeError: + errMsg = "your system does not properly handle non-ASCII paths. " + errMsg += "Please move the sqlmap's directory to the other location" + logger.error(errMsg) + exit() + setPaths() # Store original command line options for possible later restoration