mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #4873 from laf/issue-4868
fix: Toner graphs with invalid chars
This commit is contained in:
@@ -46,7 +46,7 @@ foreach (dbFetchRows('SELECT * FROM toner where device_id = ?', array($device['d
|
||||
|
||||
$hostname = gethostbyid($toner['device_id']);
|
||||
|
||||
$descr = substr(str_pad($toner['toner_descr'], 16), 0, 16);
|
||||
$descr = safedescr(substr(str_pad($toner['toner_descr'], 16), 0, 16));
|
||||
$rrd_filename = rrd_name($device['hostname'], array('toner', $toner['toner_index']));
|
||||
$toner_id = $toner['toner_id'];
|
||||
|
||||
|
@@ -11,7 +11,7 @@ if ($colour['left'] == null) {
|
||||
$colour['left'] = 'CC0000';
|
||||
}
|
||||
|
||||
$descr = substr(str_pad($toner['toner_descr'], 26), 0, 26);
|
||||
$descr = safedescr(substr(str_pad($toner['toner_descr'], 26), 0, 26));
|
||||
|
||||
$background = get_percentage_colours((100 - $toner['toner_current']));
|
||||
|
||||
|
Reference in New Issue
Block a user