Ignore:
Timestamp:
Jan 22, 2006 1:10:59 AM (18 years ago)
Author:
scdev
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/1.0.0/lib/App.inc.php

    r51 r52  
    585585    global $CFG;
    586586
    587     if ('on' != getenv('HTTPS') && $CFG->ssl_enabled && preg_match('/mod_ssl/i', getenv('SERVER_SOFTWARE'))) {
     587    if (function_exists('apache_get_modules')) {
     588        $modules = apache_get_modules();
     589    } else {
     590        // It's safe to assume we have mod_ssl if we can't determine otherwise.
     591        $modules = array('mod_ssl');
     592    }
     593   
     594    if ('on' != getenv('HTTPS') && $CFG->ssl_enabled && in_array('mod_ssl', $modules)) {
    588595        raiseMsg(sprintf(_("Secure SSL connection made to %s"), $CFG->ssl_domain), MSG_NOTICE, __FILE__, __LINE__);
    589596        // Always append session because some browsers do not send cookie when crossing to SSL URL.
Note: See TracChangeset for help on using the changeset viewer.