Changeset 630 for trunk/lib/App.inc.php
- Timestamp:
- Jun 8, 2018 3:41:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r629 r630 1601 1601 1602 1602 /** 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. 1605 1604 */ 1606 1605 public function sslOn() 1607 1606 { 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__); 1620 1609 } 1621 1610 … … 1626 1615 { 1627 1616 $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__); 1629 1618 } 1630 1619
Note: See TracChangeset
for help on using the changeset viewer.