mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Sanitize script output in logger
This commit is contained in:
parent
90c587e6e1
commit
79581fb83e
1 changed files with 2 additions and 2 deletions
|
@ -2783,12 +2783,12 @@ class SCRIPTS(Notifier):
|
|||
return False
|
||||
|
||||
if error:
|
||||
err = '\n '.join([l for l in error.splitlines()])
|
||||
err = '\n '.join([helpers.sanitize(l) for l in error.splitlines()])
|
||||
logger.error(u"Tautulli Notifiers :: Script error: \n %s" % err)
|
||||
return False
|
||||
|
||||
if output:
|
||||
out = '\n '.join([l for l in output.splitlines()])
|
||||
out = '\n '.join([helpers.sanitize(l) for l in output.splitlines()])
|
||||
logger.debug(u"Tautulli Notifiers :: Script returned: \n %s" % out)
|
||||
|
||||
if not self.script_killed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue