Skip to content

Commit 8cc516d

Browse files
committed
Bug fix (wrong coloring in some cases)
1 parent 8e39c6f commit 8cc516d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,8 @@ def setColor(message, color=None, bold=False, level=None, istty=None):
954954
if match:
955955
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
956956

957-
for match in re.finditer(r"[^\w]'([^\n']+)'", message): # single-quoted (Note: watch-out for the banner)
958-
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
957+
for match in re.finditer(r"([^\w])'([^\n']+)'", message): # single-quoted (Note: watch-out for the banner)
958+
retVal = retVal.replace(match.group(0), "%s'%s'" % (match.group(1), colored(match.group(2), color="lightgrey")))
959959

960960
return retVal
961961

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.4.3.0"
21+
VERSION = "1.4.3.1"
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)