From 9645aaa33f023e938cb2f95a732784b50badcad8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 25 Oct 2020 17:11:22 +0100 Subject: [PATCH] Fixes #4399 --- lib/core/settings.py | 2 +- plugins/dbms/postgresql/takeover.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 72a586692..a66a5bfe4 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.16" +VERSION = "1.4.10.17" 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/plugins/dbms/postgresql/takeover.py b/plugins/dbms/postgresql/takeover.py index dc48b9763..f518e78a5 100644 --- a/plugins/dbms/postgresql/takeover.py +++ b/plugins/dbms/postgresql/takeover.py @@ -11,6 +11,7 @@ from lib.core.common import Backend from lib.core.common import checkFile from lib.core.common import decloakToTemp from lib.core.common import flattenValue +from lib.core.common import filterNone from lib.core.common import isListLike from lib.core.common import isNoneValue from lib.core.common import isStackingAvailable @@ -107,6 +108,7 @@ class Takeover(GenericTakeover): if isListLike(output): output = flattenValue(output) + output = filterNone(output) if not isNoneValue(output): output = os.linesep.join(output)