mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Handle unicode strings in color stripping
This commit is contained in:
parent
aa0fb23314
commit
bc252ef010
3 changed files with 4 additions and 4 deletions
|
|
@ -1018,7 +1018,7 @@ def clearColors(message):
|
|||
|
||||
retVal = message
|
||||
|
||||
if isinstance(message, str):
|
||||
if isinstance(message, six.string_types):
|
||||
retVal = re.sub(r"\x1b\[[\d;]+m", "", message)
|
||||
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue