From cbf16c3020be196a8d3798761bda0b545a6bca3d Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 6 Jun 2014 08:26:26 -0400 Subject: Escape this before running. --- etc/inc/service-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index d52abd2..0e9009b 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -153,7 +153,7 @@ function stop_service($name) { } /* finally if we get here lets simply kill the service name */ if(is_process_running("{$name}")) - mwexec("/usr/bin/killall {$name}"); + mwexec("/usr/bin/killall " . escapeshellarg($name)); } function restart_service($name) { -- cgit v1.1