summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2018-11-08 13:01:30 -0500
committerjim-p <jimp@netgate.com>2018-11-08 13:01:52 -0500
commit98716a68a7c88eea08d3cd1f6d9c56de690f3bdc (patch)
treeba60073ae3a5e0bfb2c813e002ec91bba0753cbc /src
parent17dfb092a38639c756f9ac2e127cef03e952c459 (diff)
downloadpfsense-98716a68a7c88eea08d3cd1f6d9c56de690f3bdc.zip
pfsense-98716a68a7c88eea08d3cd1f6d9c56de690f3bdc.tar.gz
Fix change detection of GUI web server toggles. Fixes #9105
(cherry picked from commit 8207fac69158ad4a56deab4a4b4f6f4c3c361b81)
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/system_advanced_admin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/system_advanced_admin.php b/src/usr/local/www/system_advanced_admin.php
index 545d880..18698b9 100644
--- a/src/usr/local/www/system_advanced_admin.php
+++ b/src/usr/local/www/system_advanced_admin.php
@@ -160,7 +160,7 @@ if ($_POST) {
$config['system']['webgui']['disablehttpredirect'] = true;
} else {
- if ($config['system']['webgui']['disablehttpredirect'] == true) {
+ if (isset($config['system']['webgui']['disablehttpredirect'])) {
$restart_webgui = true;
}
@@ -174,7 +174,7 @@ if ($_POST) {
$config['system']['webgui']['disablehsts'] = true;
} else {
- if ($config['system']['webgui']['disablehsts'] == true) {
+ if (isset($config['system']['webgui']['disablehsts'])) {
$restart_webgui = true;
}
@@ -188,11 +188,11 @@ if ($_POST) {
$config['system']['webgui']['ocsp-staple'] = true;
} else {
- if ($config['system']['webgui']['ocsp-staple'] == true) {
+ if (isset($config['system']['webgui']['ocsp-staple'])) {
$restart_webgui = true;
}
- $config['system']['webgui']['ocsp-staple'] = false;
+ unset($config['system']['webgui']['ocsp-staple']);
}
if ($_POST['webgui-login-messages'] == "yes") {
OpenPOWER on IntegriCloud