Changeset 630 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Jun 8, 2018 3:41:16 AM (6 years ago)
Author:
anonymous
Message:

Disable App::sslOn(). Better logging on Email::send() unreplaced variables. Fix the elusive 'Database table session_tbl has invalid columns' error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r629 r630  
    16011601
    16021602    /**
    1603      * Force the user to connect via https (port 443) by redirecting them to
    1604      * the same page but with https.
     1603     * This function has changed to do nothing. SSL redirection should happen at the server layer, doing so here may result in a redirect loop.
    16051604     */
    16061605    public function sslOn()
    16071606    {
    1608         if (function_exists('apache_get_modules')) {
    1609             $modules = apache_get_modules();
    1610         } else {
    1611             // It's safe to assume we have mod_ssl if we can't determine otherwise.
    1612             $modules = array('mod_ssl');
    1613         }
    1614 
    1615         if (!getenv('HTTPS') && $this->getParam('ssl_enabled') && in_array('mod_ssl', $modules)) {
    1616             $this->raiseMsg(sprintf(_("Secure SSL connection made to %s"), $this->getParam('ssl_domain')), MSG_NOTICE, __FILE__, __LINE__);
    1617             // Always append session because some browsers do not send cookie when crossing to SSL URL.
    1618             $this->dieURL('https://' . $this->getParam('ssl_domain') . getenv('REQUEST_URI'), null, true);
    1619         }
     1607        $app =& App::getInstance();
     1608        $app->logMsg(sprintf('sslOn was called and ignored.', null), LOG_DEBUG, __FILE__, __LINE__);
    16201609    }
    16211610
     
    16261615    {
    16271616        $app =& App::getInstance();
    1628         $app->logMsg(sprintf('sslOff was called and ignored.', null), LOG_INFO, __FILE__, __LINE__);
     1617        $app->logMsg(sprintf('sslOff was called and ignored.', null), LOG_DEBUG, __FILE__, __LINE__);
    16291618    }
    16301619
Note: See TracChangeset for help on using the changeset viewer.