summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_unbound_domainoverride_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_domainoverride_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_domainoverride_edit.php')
-rw-r--r--src/usr/local/www/services_unbound_domainoverride_edit.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/usr/local/www/services_unbound_domainoverride_edit.php b/src/usr/local/www/services_unbound_domainoverride_edit.php
index cb01888..ed64580 100644
--- a/src/usr/local/www/services_unbound_domainoverride_edit.php
+++ b/src/usr/local/www/services_unbound_domainoverride_edit.php
@@ -86,8 +86,6 @@ if (isset($id) && $a_domainOverrides[$id]) {
$pconfig['descr'] = $a_domainOverrides[$id]['descr'];
}
-$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound.php');
-
if ($_POST) {
unset($input_errors);
@@ -122,10 +120,6 @@ if ($_POST) {
$input_errors[] = gettext("A valid IP address must be specified, for example 192.168.100.10.");
}
}
-
- if ($_POST['referer']) {
- $referer = $_POST['referer'];
- }
if (!$input_errors) {
$doment = array();
@@ -142,12 +136,8 @@ if ($_POST) {
mark_subsystem_dirty('unbound');
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;
}
}
@@ -194,13 +184,6 @@ if (isset($id) && $a_domainOverrides[$id]) {
));
}
-$section->addInput(new Form_Input(
- 'referer',
- null,
- 'hidden',
- $referer
-));
-
$form->add($section);
print $form;
OpenPOWER on IntegriCloud