summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_unbound_host_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-23 17:22:57 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-23 17:22:57 -0500
commit5a42473ba4b5cf67f05b29eabab26b417aca4e3a (patch)
tree7f0f5589a75c67820f39c405914912d399a3245d /src/usr/local/www/services_unbound_host_edit.php
parent4db9f6d0d331b600113e6f72d79504fd5fa437a2 (diff)
downloadpfsense-5a42473ba4b5cf67f05b29eabab26b417aca4e3a.zip
pfsense-5a42473ba4b5cf67f05b29eabab26b417aca4e3a.tar.gz
Revert "adding privileges and separating DNS Resolver overrides from general settings"
This reverts commit fc76a1e390c8ce9579df31457c74d1d0e572b78d.
Diffstat (limited to 'src/usr/local/www/services_unbound_host_edit.php')
-rw-r--r--src/usr/local/www/services_unbound_host_edit.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/usr/local/www/services_unbound_host_edit.php b/src/usr/local/www/services_unbound_host_edit.php
index 4fd5c50..fadc451 100644
--- a/src/usr/local/www/services_unbound_host_edit.php
+++ b/src/usr/local/www/services_unbound_host_edit.php
@@ -102,8 +102,6 @@ if (isset($id) && $a_hosts[$id]) {
$pconfig['aliases'] = $a_hosts[$id]['aliases'];
}
-$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound.php');
-
if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
@@ -189,10 +187,6 @@ if ($_POST) {
break;
}
}
-
- if ($_POST['referer']) {
- $referer = $_POST['referer'];
- }
if (!$input_errors) {
$hostent = array();
@@ -213,11 +207,7 @@ if ($_POST) {
write_config();
- if ($referer == '/services_unbound_overrides.php') {
- header("Location: services_unbound_overrides.php");
- } else {
- header("Location: services_unbound.php");
- }
+ header("Location: services_unbound.php");
exit;
}
}
@@ -347,13 +337,6 @@ $form->addGlobal(new Form_Button(
'fa-plus'
))->removeClass('btn-primary')->addClass('btn-success addbtn');
-$section->addInput(new Form_Input(
- 'referer',
- null,
- 'hidden',
- $referer
-));
-
$form->add($section);
print($form);
OpenPOWER on IntegriCloud