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://
Updated by Anonymous over 12 years ago
Verified that changing this to (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')
works.
Updated by Sven Vanpoucke over 12 years ago
- Category set to 21
- Assignee set to Sven Vanpoucke
I will add it to the code
Updated by Sven Vanpoucke over 12 years ago
- Status changed from New to Needs testing
- % Done changed from 0 to 100
Updated by Stefaan Vanbillemont over 12 years ago
- Project changed from Chamilo LCMS Connect to Common
- Category deleted (
21)
Updated by Stefaan Vanbillemont over 12 years ago
- Status changed from Needs testing to Bug resolved
Updated by Stefaan Vanbillemont over 12 years ago
- Target version changed from 21 to 2.1.0
Actions