diff --git a/lib/core/common.py b/lib/core/common.py index 7ce580fca..deb548790 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -215,7 +215,7 @@ class UnicodeRawConfigParser(_configparser.RawConfigParser): fp.write("[%s]\n" % _configparser.DEFAULTSECT) for (key, value) in self._defaults.items(): - fp.write("%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING).replace('\n', '\n\t'))) + fp.write("\t%s = %s" % (key, getUnicode(value, UNICODE_ENCODING))) fp.write("\n") @@ -225,9 +225,9 @@ class UnicodeRawConfigParser(_configparser.RawConfigParser): for (key, value) in self._sections[section].items(): if key != "__name__": if value is None: - fp.write("%s\n" % (key)) - else: - fp.write("%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING).replace('\n', '\n\t'))) + fp.write("\t%s\n" % (key)) + elif not isListLike(value): + fp.write("\t%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING))) fp.write("\n") diff --git a/lib/core/settings.py b/lib/core/settings.py index a66a5bfe4..76239d627 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.4.10.17" +VERSION = "1.4.10.18" 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)