Escape the argument to avoid potential issues

This commit is contained in:
Ermal 2013-03-21 14:53:11 +00:00
parent 6d76984a6a
commit 87dfd8265d

View File

@ -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'])