Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 193889e

Browse files
committed
Bug fix for --disable-coloring
1 parent 70710df commit 193889e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ def setColor(message, color=None, bold=False, level=None, istty=None):
931931
retVal = message
932932
level = level or extractRegexResult(r"\[(?P<result>%s)\]" % '|'.join(_[0] for _ in getPublicTypeMembers(LOGGING_LEVELS)), message)
933933

934-
if message and IS_TTY or istty: # colorizing handler
934+
if message and (IS_TTY or istty) and not conf.get("disableColoring"): # colorizing handler
935935
if bold or color:
936936
retVal = colored(message, color=color, on_color=None, attrs=("bold",) if bold else None)
937937
elif level:

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.6.13"
21+
VERSION = "1.3.6.14"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)