Changeset 3096 in subversion


Ignore:
Timestamp:
Nov 4, 2009 2:22:17 AM (4 years ago)
Author:
alec
Message:
Location:
trunk/roundcubemail/program/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/iniset.php

    r2979 r3096  
    5252 
    5353ini_set('error_reporting', E_ALL&~E_NOTICE); 
    54 if  (isset($_SERVER['HTTPS'])) { 
    55    ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))?1:0); 
     54if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') { 
     55   ini_set('session.cookie_secure', 1); 
    5656} else { 
    5757   ini_set('session.cookie_secure', 0); 
  • trunk/roundcubemail/program/include/main.inc

    r3063 r3096  
    14111411  global $RCMAIL; 
    14121412   
    1413   if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') 
     1413  if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') 
    14141414    return true; 
    14151415  if ($port && $_SERVER['SERVER_PORT'] == $port) 
  • trunk/roundcubemail/program/include/rcmail.php

    r2989 r3096  
    10641064    $cookie = session_get_cookie_params(); 
    10651065    setcookie($name, $value, $exp, $cookie['path'], $cookie['domain'], 
    1066       ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))); 
     1066      rcube_https_check()); 
    10671067  } 
    10681068} 
Note: See TracChangeset for help on using the changeset viewer.