mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-30 04:55:04 +00:00
Minor update
This commit is contained in:
parent
1e6f84937c
commit
6bbfec91b4
2 changed files with 7 additions and 2 deletions
7
thirdparty/ansistrm/ansistrm.py
vendored
7
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -187,9 +187,14 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
string = match.group(1)
|
||||
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
|
||||
else:
|
||||
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
|
||||
match = re.search(r" \('(.+)'\)\Z", message)
|
||||
if match:
|
||||
string = match.group(1)
|
||||
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
|
||||
else:
|
||||
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
|
||||
string = match.group(1)
|
||||
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
|
||||
else:
|
||||
message = ''.join((self.csi, ';'.join(params), 'm', message, self.reset))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue