diff --git a/emhttp/plugins/dynamix/include/ToggleState.php b/emhttp/plugins/dynamix/include/ToggleState.php index 22b09c692..63e4e87dc 100644 --- a/emhttp/plugins/dynamix/include/ToggleState.php +++ b/emhttp/plugins/dynamix/include/ToggleState.php @@ -19,7 +19,7 @@ $name = $_POST['name']??''; $action = $_POST['action']??''; function emcmd($cmd) { - exec("emcmd $cmd"); + exec("emcmd '$cmd'"); } switch ($device) { case 'New':