From a833d46d4d5aae6cd1dda89055ff4b91501540d1 Mon Sep 17 00:00:00 2001 From: f0o Date: Sun, 30 Aug 2015 18:02:29 +0100 Subject: [PATCH] Add placehoders to custom titles --- alerts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alerts.php b/alerts.php index eb63a8ad5e..3e8bdead8a 100755 --- a/alerts.php +++ b/alerts.php @@ -480,6 +480,9 @@ function DescribeAlert($alert) { $obj['timestamp'] = $alert['time_logged']; $obj['contacts'] = $extra['contacts']; $obj['state'] = $alert['state']; + if (strstr($obj['title'],'%')) { + $obj['title'] = RunJail('$ret = "'.populate(addslashes($obj['title'])).'";', $obj); + } return $obj; }//end DescribeAlert()