diff options
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/index.php | 2 | ||||
-rw-r--r-- | phpBB/install/install_install.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 9928638fc4..3c1ce359ca 100644 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -433,7 +433,7 @@ class module // HTTP_HOST is having the correct browser url in most cases... $server_name = strtolower($request->header('Host', $request->server('SERVER_NAME'))); $server_port = $request->server('SERVER_PORT', 0); - $secure = ($request->server('HTTPS') == 'on') ? 1 : 0; + $secure = $request->is_secure() ? 1 : 0; $script_name = $request->server('PHP_SELF'); if (!$script_name) diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index af3d414071..9be5466ef3 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1028,8 +1028,8 @@ class install_install extends module $data['email_enable'] = ($data['email_enable'] !== '') ? $data['email_enable'] : true; $data['server_name'] = ($data['server_name'] !== '') ? $data['server_name'] : $server_name; $data['server_port'] = ($data['server_port'] !== '') ? $data['server_port'] : $request->server('SERVER_PORT', 0); - $data['server_protocol'] = ($data['server_protocol'] !== '') ? $data['server_protocol'] : ($request->server('HTTPS') == 'on' ? 'https://' : 'http://'); - $data['cookie_secure'] = ($data['cookie_secure'] !== '') ? $data['cookie_secure'] : ($request->server('HTTPS') == 'on' ? true : false); + $data['server_protocol'] = ($data['server_protocol'] !== '') ? $data['server_protocol'] : ($request->is_secure() ? 'https://' : 'http://'); + $data['cookie_secure'] = ($data['cookie_secure'] !== '') ? $data['cookie_secure'] : $request->is_secure(); if ($data['script_path'] === '') { |