diff --git a/lib/core/dump.py b/lib/core/dump.py index 336831674..9bf1b8782 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -26,6 +26,7 @@ from lib.core.common import openFile from lib.core.common import prioritySortColumns from lib.core.common import randomInt from lib.core.common import safeCSValue +from lib.core.common import unArrayizeValue from lib.core.common import unsafeSQLIdentificatorNaming from lib.core.compat import xrange from lib.core.convert import getBytes @@ -116,6 +117,9 @@ class Dump(object): if conf.api: self._write(data, content_type=content_type) + if isListLike(data) and len(data) == 1: + data = unArrayizeValue(data) + if isListLike(data): self.lister(header, data, content_type, sort) elif data is not None: diff --git a/lib/core/settings.py b/lib/core/settings.py index 14659b0b1..3afebfda3 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.6.4" +VERSION = "1.5.6.5" 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)