summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-21 14:53:11 +0000
committerErmal <eri@pfsense.org>2013-03-21 14:53:11 +0000
commit87dfd8265d06fd19d97b55dfa64944172eb9adf5 (patch)
treefc569662892666a0b5e22ed55901bfe5f37bcb5c /etc/inc/interfaces.inc
parent6d76984a6a20a8d09d41e207c362a1c7d657648b (diff)
downloadpfsense-87dfd8265d06fd19d97b55dfa64944172eb9adf5.zip
pfsense-87dfd8265d06fd19d97b55dfa64944172eb9adf5.tar.gz
Escape the argument to avoid potential issues
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index df04bfb..0841470 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3358,7 +3358,7 @@ function interface_6rd_configure($interface = "wan", $wancfg) {
$ip4gateway = get_interface_gateway($interface);
if (is_ipaddrv4($ip4gateway))
- mwexec("/sbin/route change -host " . $wancfg['gateway-6rd'] . " {$ip4gateway}");
+ mwexec("/sbin/route change -host " . escapeshellarg($wancfg['gateway-6rd']) . " {$ip4gateway}");
/* configure dependent interfaces */
if (!$g['booting'])
OpenPOWER on IntegriCloud