Add placehoders to custom titles

This commit is contained in:
f0o
2015-08-30 18:02:29 +01:00
parent 68f9812b9d
commit a833d46d4d

View File

@@ -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()