diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-07-12 16:59:44 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-07-12 17:00:10 -0400 |
commit | 36f83f683d6f944308a54020561e60e4148390bc (patch) | |
tree | 0dbcd1181e55c73ad564afb8ed0f4ccfd4ce5014 | |
parent | 1ed86bc611f6b1885616354ebfa015a6d861f320 (diff) | |
download | pfsense-36f83f683d6f944308a54020561e60e4148390bc.zip pfsense-36f83f683d6f944308a54020561e60e4148390bc.tar.gz |
fix disable HTTP redirect
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index c853c91..12d7c9e 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -52,7 +52,7 @@ require_once("shaper.inc"); $pconfig['webguiproto'] = $config['system']['webgui']['protocol']; $pconfig['webguiport'] = $config['system']['webgui']['port']; $pconfig['ssl-certref'] = $config['system']['webgui']['ssl-certref']; -$pconfig['disablehttpredirect'] = isset($config['system']['disablehttpredirect']); +$pconfig['disablehttpredirect'] = isset($config['system']['webgui']['disablehttpredirect']); $pconfig['disableconsolemenu'] = isset($config['system']['disableconsolemenu']); $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']); $pconfig['nodnsrebindcheck'] = isset($config['system']['webgui']['nodnsrebindcheck']); @@ -110,10 +110,10 @@ if ($_POST) { $restart_webgui = true; if ($_POST['disablehttpredirect'] == "yes") { - $config['system']['disablehttpredirect'] = true; + $config['system']['webgui']['disablehttpredirect'] = true; $restart_webgui = true; } else { - unset($config['system']['disablehttpredirect']); + unset($config['system']['webgui']['disablehttpredirect']); $restart_webgui = true; } @@ -469,4 +469,4 @@ if ($restart_webgui) { touch("{$g['tmp_path']}/restart_webgui"); } -?> +?>
\ No newline at end of file |