Check if notification agents enabled before sending notifications
This commit is contained in:
@@ -1105,7 +1105,7 @@ def build_server_notify_text(notify_action=None, agent_id=None):
|
||||
return None
|
||||
|
||||
|
||||
def strip_tag(data, agent_id):
|
||||
def strip_tag(data, agent_id=None):
|
||||
# Allow tags b, i, u, a[href], font[color] for Pushover
|
||||
if agent_id == 7:
|
||||
p = re.compile(r'<(?!/?(b>|i>|u>)|(a\shref=\"[^\"\'\s]+\"|/a>|font\scolor=\"[^\"\'\s]+\"|/font>)).*?>',
|
||||
|
Reference in New Issue
Block a user