From 871ebfdb708a62c28d49c0128ba83cdb1cc31b48 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 27 Sep 2019 21:03:21 +0200 Subject: [PATCH] Fixes #3943 --- lib/core/settings.py | 2 +- lib/utils/purge.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 1839d86b3..b163039e1 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.9.21" +VERSION = "1.3.9.22" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/utils/purge.py b/lib/utils/purge.py index 11ac6d06b..72d99a555 100644 --- a/lib/utils/purge.py +++ b/lib/utils/purge.py @@ -15,6 +15,7 @@ import string from lib.core.common import getSafeExString from lib.core.common import openFile from lib.core.compat import xrange +from lib.core.convert import getUnicode from lib.core.data import logger from thirdparty.six import unichr as _unichr @@ -84,4 +85,4 @@ def purge(directory): try: shutil.rmtree(directory) except OSError as ex: - logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, getSafeExString(ex))) + logger.error("problem occurred while removing directory '%s' ('%s')" % (getUnicode(directory), getSafeExString(ex)))