From 3be4cbe9c6f1196ba272ca75b1bf8eeca3fac06e Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 9 Mar 2009 18:36:40 +0100 Subject: Properly escape more quotes and add more of them --- etc/inc/config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/config.inc b/etc/inc/config.inc index e178105..3b8be5a 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -2875,7 +2875,7 @@ function system_start_ftp_helpers() { /* if ftp-proxy is already running then do not launch it again */ if($g['debug']) log_error("Config: FTP proxy port ($port) enabled for interface {$ifname}"); - exec("/bin/ps awwux | /usr/bin/grep \"[/]ftp-proxy\" | /usr/bin/grep {$port} | /usr/bin/grep "{$pftpxsourceaddr}" | /usr/bin/awk '{ print $2 }'", $helpers); + exec("/bin/ps awwux | /usr/bin/grep \"[/]ftp-proxy\" | /usr/bin/grep \"{$port}\" | /usr/bin/grep \"{$pftpxsourceaddr}\" | /usr/bin/awk '{ print $2 }'", $helpers); if(!$helpers && $ip) mwexec("/usr/local/sbin/ftp-proxy {$shaper_queue} -p {$port} {$pftpxsourceaddr} {$ip} -T PFFTPPROXY"); if(!$ip) -- cgit v1.1