From c9a8b915c8f900e8c22c24b5f5c36b91e6f49f5f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 25 Oct 2020 17:34:06 +0100 Subject: [PATCH] Fixes #4398 --- lib/core/common.py | 8 ++++---- lib/core/settings.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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)