Skip to content

Commit 6bbfec9

Browse files
committed
Minor update
1 parent 1e6f849 commit 6bbfec9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

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.5.137"
21+
VERSION = "1.3.5.138"
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)

thirdparty/ansistrm/ansistrm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,14 @@ def colorize(self, message, levelno):
187187
string = match.group(1)
188188
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
189189
else:
190-
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
190+
match = re.search(r" \('(.+)'\)\Z", message)
191+
if match:
191192
string = match.group(1)
192193
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
194+
else:
195+
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
196+
string = match.group(1)
197+
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
193198
else:
194199
message = ''.join((self.csi, ';'.join(params), 'm', message, self.reset))
195200

0 commit comments

Comments
 (0)