Project

General

Profile

Actions

Bug #2742

closed

IIS6 always forces https

Added by Alex Schoenmaker over 12 years ago. Updated over 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 #1

Updated by Anonymous over 12 years ago

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

Actions #2

Updated by Stefaan Vanbillemont over 12 years ago

  • Target version set to 21
Actions #3

Updated by Sven Vanpoucke over 12 years ago

  • Category set to 21
  • Assignee set to Sven Vanpoucke

I will add it to the code

Actions #4

Updated by Sven Vanpoucke over 12 years ago

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

Updated by Stefaan Vanbillemont over 12 years ago

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

Updated by Stefaan Vanbillemont over 12 years ago

  • Status changed from Needs testing to Bug resolved
Actions #7

Updated by Stefaan Vanbillemont over 12 years ago

  • Target version changed from 21 to 2.1.0
Actions

Also available in: Atom PDF