From 87dfd8265d06fd19d97b55dfa64944172eb9adf5 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 21 Mar 2013 14:53:11 +0000 Subject: [PATCH] Escape the argument to avoid potential issues --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])