Project

General

Profile

Actions

Bug #2742

closed

IIS6 always forces https

Added by Alex Schoenmaker about 12 years ago. Updated almost 12 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Sven Vanpoucke
Target version:
Start date:
04/02/2011
Due date:
% Done:

100%

Estimated time:
Complexity:
Easy

Description

IIS6 will return the value 'off' for $_SERVER['HTTPS'] when visiting Chamilo on http, thus setting $protocol to 'https://' even though https might be unavailable.

File: common\libraries\php\filesystem\path.class.php
Line 107: $protocol = empty($_SERVER['HTTPS']) ? 'http://' : 'https://';

Test script:
------------
http://www.domain.tld/

File: common\libraries\php\filesystem\path.class.php, line 108:
echo $_SERVER['HTTPS'] . '<br>';
echo $protocol . '<br>';
exit();

Expected result:
------------
off
http://

Actual result:
------------
off
https://

Actions

Also available in: Atom PDF