From 43805e1a041d1f894144981a4dec67a408a28f49 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 28 Apr 2012 10:20:21 -0700 Subject: [PATCH] Use backquote function --- firewall/index.cgi | 2 +- firewall/install_check.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall/index.cgi b/firewall/index.cgi index f04136b85..e330bab19 100755 --- a/firewall/index.cgi +++ b/firewall/index.cgi @@ -18,7 +18,7 @@ if ($c = &missing_firewall_commands()) { } # Check if the kernel supports iptables -$out = `iptables -n -t filter -L OUTPUT 2>&1`; +$out = &backquote_command("iptables -n -t filter -L OUTPUT 2>&1"); if ($?) { print "

",&text('index_ekernel', "

$out
"),"

\n"; &ui_print_footer("/", $text{'index'}); diff --git a/firewall/install_check.pl b/firewall/install_check.pl index 336082a05..cbc3043b2 100755 --- a/firewall/install_check.pl +++ b/firewall/install_check.pl @@ -9,7 +9,7 @@ do 'firewall-lib.pl'; sub is_installed { return 0 if (&missing_firewall_commands()); -local $out = `iptables -n -t filter -L OUTPUT 2>&1`; +local $out = &backquote_command("iptables -n -t filter -L OUTPUT 2>&1"); return 0 if ($?); if ($_[0]) { if (!$config{'direct'} &&