From eca572a627d94be7c8601b4c86060840b443448b Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 20 Aug 2019 16:50:51 +0200 Subject: [PATCH] Made notify script compatible with 6.8 new security scheme --- plugins/dynamix/scripts/notify | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dynamix/scripts/notify b/plugins/dynamix/scripts/notify index 962c689c7..7729263de 100755 --- a/plugins/dynamix/scripts/notify +++ b/plugins/dynamix/scripts/notify @@ -1,7 +1,7 @@ #!/usr/bin/php -q ',$message)."\n" : "")); if (($entity & 1)==1 && !$mailtest) file_put_contents($unread,"timestamp=$timestamp\nevent=$event\nsubject=$subject\ndescription=$description\nimportance=$importance\n"); if (($entity & 2)==2 || $mailtest) if (!generate_email($event, $subject, str_replace('
','. ',$description), $importance, $message, $recipients)) exit(1); - if (($entity & 4)==4 && !$mailtest) { if (is_array($agents)) {foreach ($agents as $agent) {exec("TIMESTAMP='$timestamp' EVENT=".escapeshellarg($event)." SUBJECT=".escapeshellarg($subject)." DESCRIPTION=".escapeshellarg($description)." IMPORTANCE=".escapeshellarg($importance)." CONTENT=".escapeshellarg($message)." ".$agent);};}}; + if (($entity & 4)==4 && !$mailtest) { if (is_array($agents)) {foreach ($agents as $agent) {exec("TIMESTAMP='$timestamp' EVENT=".escapeshellarg($event)." SUBJECT=".escapeshellarg($subject)." DESCRIPTION=".escapeshellarg($description)." IMPORTANCE=".escapeshellarg($importance)." CONTENT=".escapeshellarg($message)." bash ".$agent);};}}; break; case 'get':