diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index df04bfb9ff..084147098f 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'])