mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add placehoders to custom titles
This commit is contained in:
@@ -480,6 +480,9 @@ function DescribeAlert($alert) {
|
|||||||
$obj['timestamp'] = $alert['time_logged'];
|
$obj['timestamp'] = $alert['time_logged'];
|
||||||
$obj['contacts'] = $extra['contacts'];
|
$obj['contacts'] = $extra['contacts'];
|
||||||
$obj['state'] = $alert['state'];
|
$obj['state'] = $alert['state'];
|
||||||
|
if (strstr($obj['title'],'%')) {
|
||||||
|
$obj['title'] = RunJail('$ret = "'.populate(addslashes($obj['title'])).'";', $obj);
|
||||||
|
}
|
||||||
return $obj;
|
return $obj;
|
||||||
|
|
||||||
}//end DescribeAlert()
|
}//end DescribeAlert()
|
||||||
|
Reference in New Issue
Block a user