SITE_URL not correct for https sites
Bug #832650 reported by
Kitserve
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pluck CMS |
Fix Committed
|
Low
|
Unassigned |
Bug Description
In /data/inc/
define('SITE_URL', 'http://
It should be replaced with something like the following:
$protocol = 'http';
if($_SERVER[
$directory = dirname(
if(substr(
define('SITE_URL', $protocol.
This should also fix bug #830504.
To post a comment you must log in.
Minor correction to the above: 'HTTPS' ] and $_SERVER['HTTPS'] != 'off') $_SERVER[ 'HTTPS' ]) and $_SERVER['HTTPS'] and $_SERVER['HTTPS'] != 'off')
if($_SERVER[
should be
if(isset(