mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 18:19:54 -06:00
Dashboard: protect against rogue graph entries
This commit is contained in:
@@ -64,7 +64,7 @@ while (true) {
|
||||
$hooks = array_filter(glob("/usr/local/emhttp/plugins/*/system/*",GLOB_NOSORT),function($file){return is_executable($file);});
|
||||
foreach ($hooks as $hook) {
|
||||
$data = @intval(exec(escapeshellarg($hook)));
|
||||
if (!$data) continue;
|
||||
if (!$data || $data>$used) continue;
|
||||
$names[] = _(basename($hook)); // name of element (with translation)
|
||||
$bytes[] = $data; // value in bytes of element
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user