mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
Notifications: revised operation
Add security
This commit is contained in:
@@ -48,7 +48,7 @@ case 'get':
|
||||
break;
|
||||
case 'hide':
|
||||
$file = $_POST['file'];
|
||||
if (file_exists($file)) chmod($file,0000);
|
||||
if (file_exists($file) && pathinfo($file)['extension']=='notify') chmod($file,0000);
|
||||
break;
|
||||
case 'archive':
|
||||
shell_exec("$notify archive ".escapeshellarg($_POST['file']));
|
||||
|
||||
Reference in New Issue
Block a user