From: Stefan Schantl Date: Mon, 17 May 2021 21:10:32 +0000 (+0200) Subject: proxy.cgi: Use new system methods X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=875041991c838d25ba236e9bd6e253e16411a264 proxy.cgi: Use new system methods Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index b6d71db84d..aaf04594cf 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -32,7 +32,7 @@ require "${General::swroot}/header.pl"; require "${General::swroot}/ids-functions.pl"; -my @squidversion = `/usr/sbin/squid -v`; +my @squidversion = &General::system_output("/usr/sbin/squid", "-v"); my $http_port='81'; my $https_port='444'; @@ -385,7 +385,7 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'} $errormessage = $Lang::tr{'advproxy errmsg mem cache size'}; goto ERROR; } - my @free = `/usr/bin/free`; + my @free = &General::system_output("/usr/bin/free"); $free[1] =~ m/(\d+)/; $cachemem = int $1 / 2048; if ($proxysettings{'CACHE_MEM'} > $cachemem) {