mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Escape the argument to avoid potential issues
This commit is contained in:
parent
6d76984a6a
commit
87dfd8265d
@ -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'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user