X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fstatusnet.php;h=4c2aacd8f7d229994e41e9be75d2fdafafa25878;hb=1d29ba83150bdd7a23e497ca9a743ac2b6158b6f;hp=3d018f4e211b54e0f0ebc00d236fbefcf04df55d;hpb=4c3aebd39644d913df4abdb69b848413ca65c298;p=quix0rs-gnu-social.git diff --git a/lib/statusnet.php b/lib/statusnet.php index 3d018f4e21..4c2aacd8f7 100644 --- a/lib/statusnet.php +++ b/lib/statusnet.php @@ -245,7 +245,7 @@ class StatusNet * Establish default configuration based on given or default server and path * Sets global $_server, $_path, and $config */ - protected static function initDefaults($server, $path) + public static function initDefaults($server, $path) { global $_server, $_path, $config; @@ -396,7 +396,11 @@ class StatusNet static function isHTTPS() { // There are some exceptions to this; add them here! - return $_SERVER['HTTPS']; + if(empty($_SERVER['HTTPS'])) { + return false; + } else { + return $_SERVER['HTTPS'] !== 'off'; + } } }