diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php index 08c1089eb..dc0b1759a 100644 --- a/src/www/services_unbound.php +++ b/src/www/services_unbound.php @@ -84,6 +84,7 @@ if ($_POST) { system_resolvconf_generate(); } else { $pconfig = $_POST; + if (isset($_POST['enable']) && isset($config['dnsmasq']['enable'])) $input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver."; @@ -136,8 +137,6 @@ if ($_POST) { if (!$input_errors) { write_config("DNS Resolver configured."); mark_subsystem_dirty('unbound'); - header("Location: services_unbound.php"); - exit; } } } diff --git a/src/www/services_unbound_acls.php b/src/www/services_unbound_acls.php index 19cd844b4..b1b0a5da4 100644 --- a/src/www/services_unbound_acls.php +++ b/src/www/services_unbound_acls.php @@ -1,4 +1,5 @@ @@ -93,7 +94,6 @@ if ($act == "edit") { if ($_POST) { $input_errors = array(); - $pconfig = $_POST; if ($_POST['apply']) { $retval = services_unbound_configure(); @@ -101,6 +101,7 @@ if ($_POST) { if ($retval == 0) clear_subsystem_dirty('unbound'); } else { + $pconfig = $_POST; // input validation - only allow 50 entries in a single ACL for($x=0; $x<50; $x++) { diff --git a/src/www/services_unbound_advanced.php b/src/www/services_unbound_advanced.php index ef6b49931..bb4e06a41 100644 --- a/src/www/services_unbound_advanced.php +++ b/src/www/services_unbound_advanced.php @@ -1,8 +1,9 @@ + All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -62,14 +63,14 @@ $pconfig['unwanted_reply_threshold'] = $config['unbound']['unwanted_reply_thresh $pconfig['log_verbosity'] = isset($config['unbound']['log_verbosity']) ? $config['unbound']['log_verbosity'] : "1"; if ($_POST) { - $pconfig = $_POST; - if ($_POST['apply']) { $retval = services_unbound_configure(); $savemsg = get_std_save_message(); if ($retval == 0) clear_subsystem_dirty('unbound'); } else { + $pconfig = $_POST; + if (isset($_POST['hideidentity'])) $config['unbound']['hideidentity'] = true; else @@ -108,7 +109,6 @@ if ($_POST) { $config['unbound']['unwanted_reply_threshold'] = $_POST['unwanted_reply_threshold']; $config['unbound']['log_verbosity'] = $_POST['log_verbosity']; write_config("DNS Resolver configured."); - mark_subsystem_dirty('unbound'); } }