1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[feature/request-class] Make use of the is_secure() method

PHPBB3-9716
This commit is contained in:
Igor Wiedler
2011-08-18 22:25:17 +02:00
parent a48889fed8
commit f84460c710
4 changed files with 5 additions and 5 deletions

View File

@@ -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)