Skip to content
Snippets Groups Projects
Commit 18ab8d14 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: DGGN patch for https forced

parent dbff37f1
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,8 @@ class Maarch_SOAP_DISCO_Server extends SOAP_DISCO_Server ...@@ -19,7 +19,8 @@ class Maarch_SOAP_DISCO_Server extends SOAP_DISCO_Server
private function selfUrl() private function selfUrl()
{ {
$rootUri = self::_getRootUri(); $rootUri = self::_getRootUri();
$protocol = (array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == 'on') $protocol = ( (array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == 'on') ||
(array_key_exists('HTTP_FORCE_HTTPS', $_SERVER) && $_SERVER['HTTP_FORCE_HTTPS'] == 'on') )
? 'https://' : 'http://' ; ? 'https://' : 'http://' ;
$lastChar = strlen($rootUri) - 1; $lastChar = strlen($rootUri) - 1;
if ($rootUri[$lastChar] != '/') { if ($rootUri[$lastChar] != '/') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment