mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 10:10:05 -06:00
enclose arguemnt to emcmd() with single-quotes
This commit is contained in:
@@ -19,7 +19,7 @@ $name = $_POST['name']??'';
|
||||
$action = $_POST['action']??'';
|
||||
|
||||
function emcmd($cmd) {
|
||||
exec("emcmd $cmd");
|
||||
exec("emcmd '$cmd'");
|
||||
}
|
||||
switch ($device) {
|
||||
case 'New':
|
||||
|
||||
Reference in New Issue
Block a user