diff options
Diffstat (limited to 'src/usr/local/www/services_unbound_domainoverride_edit.php')
-rw-r--r-- | src/usr/local/www/services_unbound_domainoverride_edit.php | 21 |
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; |