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


Ignore:
Timestamp:
Mar 7, 2019 9:07:15 PM (5 years ago)
Author:
anonymous
Message:

Add Auth_SQL->isLoggedIn(CLIENT_ID) return seconds until session expiry. Add humanTime() JS function. Fix site_hostname port separator.

File:
1 edited

Legend:

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

    r670 r671  
    479479         */
    480480
    481         $safe_http_host = preg_replace('/[^a-z\d.-]/', '', getenv('HTTP_HOST'));
     481        $safe_http_host = preg_replace('/[^a-z\d.:-]/', '', getenv('HTTP_HOST'));
    482482        if ('' != $safe_http_host && '' == $this->getParam('site_hostname')) {
    483483            $this->setParam(array('site_hostname' => $safe_http_host));
Note: See TracChangeset for help on using the changeset viewer.