From 11a48b7c4029415a5d48234311fd988f33569b80 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 17 May 2021 23:10:32 +0200 Subject: [PATCH] proxy.cgi: Use new system methods Signed-off-by: Stefan Schantl --- html/cgi-bin/proxy.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5