diff options
author | Ermal <eri@pfsense.org> | 2013-03-21 14:53:11 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-21 14:53:11 +0000 |
commit | 87dfd8265d06fd19d97b55dfa64944172eb9adf5 (patch) | |
tree | fc569662892666a0b5e22ed55901bfe5f37bcb5c | |
parent | 6d76984a6a20a8d09d41e207c362a1c7d657648b (diff) | |
download | pfsense-87dfd8265d06fd19d97b55dfa64944172eb9adf5.zip pfsense-87dfd8265d06fd19d97b55dfa64944172eb9adf5.tar.gz |
Escape the argument to avoid potential issues
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
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']) |