summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-01 18:56:36 +0100
committerErmal <eri@pfsense.org>2014-11-01 18:56:36 +0100
commitf3dd7e8cdb11077486421364ea3a11c411ba807b (patch)
tree5876634d91c6599a954d746000b80a0376577917
parent9fdc167f4ef1c8fd1b76ba9ca6e56c8085dbe672 (diff)
downloadpfsense-f3dd7e8cdb11077486421364ea3a11c411ba807b.zip
pfsense-f3dd7e8cdb11077486421364ea3a11c411ba807b.tar.gz
Properly test if FCGI is calling or are being triggered from shell. Normally Fixes #3361
-rwxr-xr-xetc/rc.newwanipv64
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6
index 7e76d88..5b9ff86 100755
--- a/etc/rc.newwanipv6
+++ b/etc/rc.newwanipv6
@@ -94,7 +94,7 @@ if ((empty($curwanipv6) || !is_ipaddrv6($curwanipv6)) && substr($interface_real,
return;
}
-if (isset($_GET))
+if (isset($_GET['dmips']))
$new_domain_name_servers = $_GET['dmips'];
else
$new_domain_name_servers = getenv("new_domain_name_servers");
@@ -109,7 +109,7 @@ if (!empty($new_domain_name_servers)) {
if (count($valid_ns > 0))
file_put_contents("{$g['varetc_path']}/nameserver_v6{$interface}", implode("\n", $valid_ns));
}
-if (isset($_GET))
+if (isset($_GET['dmnames']))
$new_domain_name = $_GET['dmnames'];
else
$new_domain_name = getenv("new_domain_name");
OpenPOWER on IntegriCloud