Project

General

Profile

Bug #2742

IIS6 always forces https

Added by Alex Schoenmaker almost 9 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
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://

History

#1

Updated by Anonymous almost 9 years ago

Verified that changing this to (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') works.

#2

Updated by Stefaan Vanbillemont almost 9 years ago

  • Target version set to 21
#3

Updated by Sven Vanpoucke almost 9 years ago

  • Category set to 21
  • Assignee set to Sven Vanpoucke

I will add it to the code

#4

Updated by Sven Vanpoucke almost 9 years ago

  • Status changed from New to Needs testing
  • % Done changed from 0 to 100
#5

Updated by Stefaan Vanbillemont almost 9 years ago

  • Project changed from Chamilo LCMS Connect to Common
  • Category deleted (21)
#6

Updated by Stefaan Vanbillemont almost 9 years ago

  • Status changed from Needs testing to Bug resolved
#7

Updated by Stefaan Vanbillemont almost 9 years ago

  • Target version changed from 21 to 2.1.0

Also available in: Atom PDF