From 1bef2f8fdae5b514e489db6b0937a19f0de1135f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 10 Feb 2021 14:02:42 +0100 Subject: [PATCH] Fixes #4576 --- lib/core/log.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/log.py b/lib/core/log.py index 45005fa53..c5c3d14c1 100644 --- a/lib/core/log.py +++ b/lib/core/log.py @@ -23,7 +23,7 @@ try: class _ColorizingStreamHandler(ColorizingStreamHandler): def colorize(self, message, levelno, force=False): - if levelno in self.level_map and self.is_tty or force: + if levelno in self.level_map and (self.is_tty or force): bg, fg, bold = self.level_map[levelno] params = [] diff --git a/lib/core/settings.py b/lib/core/settings.py index 2930cc2da..531a669f8 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.5.2.12" +VERSION = "1.5.2.13" 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)