Actions
Bug #2742
closedIIS6 always forces https
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