fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16710] request scheme


From: sigurdne
Subject: [Fmsystem-commits] [16710] request scheme
Date: Tue, 9 May 2017 06:46:00 -0400 (EDT)

Revision: 16710
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16710
Author:   sigurdne
Date:     2017-05-09 06:45:59 -0400 (Tue, 09 May 2017)
Log Message:
-----------
request scheme

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.sessions.inc.php

Modified: trunk/phpgwapi/inc/class.sessions.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.sessions.inc.php   2017-05-09 08:54:20 UTC (rev 
16709)
+++ trunk/phpgwapi/inc/class.sessions.inc.php   2017-05-09 10:45:59 UTC (rev 
16710)
@@ -607,6 +607,13 @@
                                }
                        }
 
+                       $request_scheme = empty($_SERVER['HTTPS']) || 
$_SERVER['HTTPS'] == 'off' ? 'http' : 'https';
+
+                       if($request_scheme == 'https')
+                       {
+                               $GLOBALS['phpgw_info']['server']['enforce_ssl'] 
= true;
+                       }
+
                        if ( 
isset($GLOBALS['phpgw_info']['server']['enforce_ssl'])
                                && 
$GLOBALS['phpgw_info']['server']['enforce_ssl'])
                        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]