зеркало из https://github.com/mozilla/MozDef.git
mozdefbot: during alert formatting, replace chars that cant be encoded
This resolves an issue where formatAlert() fails if the alert summary contains extended characters
This commit is contained in:
Родитель
32202d5eb6
Коммит
af3985fa60
|
@ -169,7 +169,7 @@ def formatAlert(jsonDictIn):
|
|||
return colorify('{0}: {1} {2}'.format(severity, colors['blue']
|
||||
+ category
|
||||
+ colors['normal'],
|
||||
summary))
|
||||
summary.encode('ascii', 'replace')))
|
||||
|
||||
|
||||
class mozdefBot():
|
||||
|
|
Загрузка…
Ссылка в новой задаче