mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
use builtin "safename" (#13945)
This commit is contained in:
@@ -460,7 +460,7 @@ class Rrd extends BaseDatastore
|
||||
public function getRrdFiles($device)
|
||||
{
|
||||
if ($this->rrdcached) {
|
||||
$filename = sprintf('/%s', $device['hostname']);
|
||||
$filename = sprintf('/%s', self::safename($device['hostname']));
|
||||
$rrd_files = $this->command('list', $filename, '');
|
||||
// Command output is an array, create new array with each filename as a item in array.
|
||||
$rrd_files_array = explode("\n", trim($rrd_files[0]));
|
||||
|
||||
Reference in New Issue
Block a user