From: Michael Tremer Date: Thu, 10 Jun 2021 13:35:09 +0000 (+0100) Subject: optionsfw.cgi: Use new perl system functions X-Git-Tag: v2.25-core158~33^2~10^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3be1e3c6f78a166029464de23078e367cc34dfa1;p=ipfire-2.x.git optionsfw.cgi: Use new perl system functions Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi index 321642e82e..1ecf4f180c 100644 --- a/html/cgi-bin/optionsfw.cgi +++ b/html/cgi-bin/optionsfw.cgi @@ -49,7 +49,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) { if ($settings{'defpol'} ne '1'){ $errormessage .= $Lang::tr{'new optionsfw later'}; &General::writehash($filename, \%settings); # Save good settings - system("/usr/local/bin/firewallctrl"); + &General::system("/usr/local/bin/firewallctrl"); }else{ if ($settings{'POLICY'} ne ''){ $fwdfwsettings{'POLICY'} = $settings{'POLICY'}; @@ -64,7 +64,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) { $fwdfwsettings{'POLICY1'} = "$MODE1"; &General::writehash("${General::swroot}/firewall/settings", \%fwdfwsettings); &General::readhash("${General::swroot}/firewall/settings", \%fwdfwsettings); - system("/usr/local/bin/firewallctrl"); + &General::system("/usr/local/bin/firewallctrl"); } &General::readhash($filename, \%settings); # Load good settings }