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:36 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-23 17:22:36 -0500
commit8b056044d2d7192aef7e3a327670e91996ccc044 (patch)
treefdf663b96570e0c15942a73523d14ff514922ea9 /src/usr/local/www/services_unbound_host_edit.php
parent4e27cf1542c91811c2f00034f50397bbbb902afe (diff)
downloadpfsense-8b056044d2d7192aef7e3a327670e91996ccc044.zip
pfsense-8b056044d2d7192aef7e3a327670e91996ccc044.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