mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix rrd_name escaping * used with glob()
Thanks tuxis-ie for finding the issue and fix.
This commit is contained in:
@@ -21,7 +21,7 @@ $colour_area_in = 'CDEB8B';
|
||||
$colour_area_out = 'C3D9FF';
|
||||
|
||||
$rrd_list = array();
|
||||
$rrd_filenames = glob(rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id'], '*')));
|
||||
$rrd_filenames = glob(rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id']), '*.rrd'));
|
||||
foreach ($rrd_filenames as $file) {
|
||||
$pieces = explode('-', basename($file, '.rrd'));
|
||||
$hostname = end($pieces);
|
||||
|
@@ -8,7 +8,7 @@ $total_text = 'Total of all ShoutCast Servers';
|
||||
$nototal = 0;
|
||||
|
||||
$rrd_list = array();
|
||||
$rrd_filenames = glob(rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id'], '*')));
|
||||
$rrd_filenames = glob(rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id']), '*.rrd'));
|
||||
foreach ($rrd_filenames as $file) {
|
||||
$pieces = explode('-', basename($file, '.rrd'));
|
||||
$hostname = end($pieces);
|
||||
|
Reference in New Issue
Block a user