summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-26 12:35:50 -0200
committerRenato Botelho <renato@netgate.com>2017-01-26 12:35:50 -0200
commit31677494e659768a12d134641bbd4453d2c0a03c (patch)
treea667e125296532c70bbfde820fb6a01800131932 /src/etc/inc/interfaces.inc
parent7ae710d4447d0ccd5cdc1d8040135642623eea14 (diff)
downloadpfsense-31677494e659768a12d134641bbd4453d2c0a03c.zip
pfsense-31677494e659768a12d134641bbd4453d2c0a03c.tar.gz
Escape $ to avoid replacing it by PHP variables
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r--src/etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 5d4ba8e..bc384cd 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -4011,8 +4011,8 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) {
$dhcp6cscriptwithoutra .= "dmips=\${new_domain_name_servers}\n";
$dhcp6cscriptwithoutra .= "dmnames=\${new_domain_name}\n";
// Need to pass params to the final script
- $dhcp6cscriptwithoutra .= "echo $dmips > /tmp/{$wanif}_domain_name_servers\n";
- $dhcp6cscriptwithoutra .= "echo $dmnames > /tmp/{$wanif}_new_domain_name\n";
+ $dhcp6cscriptwithoutra .= "echo \$dmips > /tmp/{$wanif}_domain_name_servers\n";
+ $dhcp6cscriptwithoutra .= "echo \$dmnames > /tmp/{$wanif}_new_domain_name\n";
$dhcp6cscriptwithoutra .= "/usr/sbin/rtsold -1 -p {$g['varrun_path']}/rtsold_{$wanif}.pid -O {$g['varetc_path']}/rtsold_{$wanif}_script.sh {$wanif}\n";
if (!@file_put_contents("{$g['varetc_path']}/dhcp6c_{$interface}_dhcp6withoutra_script.sh", $dhcp6cscriptwithoutra)) {
@@ -4032,8 +4032,8 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) {
$dhcp6cscript .= "dmnames=\${new_domain_name}\n";
} else {
// Need to get the paramaters from the dhcp6cwithoutRA run
- $dhcp6cscript .= "dmips=$(cat \"/tmp/{$wanif}_domain_name_servers\")\n";
- $dhcp6cscript .= "dmnames=$(cat \"/tmp/{$wanif}_new_domain_name\")\n";
+ $dhcp6cscript .= "dmips=\$(cat \"/tmp/{$wanif}_domain_name_servers\")\n";
+ $dhcp6cscript .= "dmnames=\$(cat \"/tmp/{$wanif}_new_domain_name\")\n";
}
$dhcp6cscript .= "/usr/local/sbin/fcgicli -f /etc/rc.newwanipv6 -d \"interface={$wanif}&dmnames=\${dmnames}&dmips=\${dmips}\"\n";
/* Add wide-dhcp6c shell script here. Because we can not pass a argument to it. */
OpenPOWER on IntegriCloud