diff options
author | friendica <info@friendica.com> | 2012-03-16 23:51:49 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-16 23:51:49 -0700 |
commit | 511d8a30a05f76a08582f2d7a9ccd78dbd744c57 (patch) | |
tree | 7b334f512dbeb16f13e95c19e66a6d63b8c8b1da | |
parent | 2785bb413e4d84e93cb132c0492d79702ae1de90 (diff) | |
download | volse-hubzilla-511d8a30a05f76a08582f2d7a9ccd78dbd744c57.tar.gz volse-hubzilla-511d8a30a05f76a08582f2d7a9ccd78dbd744c57.tar.bz2 volse-hubzilla-511d8a30a05f76a08582f2d7a9ccd78dbd744c57.zip |
scheme checking for webservers without $_SERVER['HTTPS']
-rwxr-xr-x | boot.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -286,7 +286,12 @@ class App { startup(); - $this->scheme = ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'])) ? 'https' : 'http' ); + $this->scheme = 'http'; + if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS']) + $this->scheme = 'https'; + elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443)) + $this->scheme = 'https'; + if(x($_SERVER,'SERVER_NAME')) { $this->hostname = $_SERVER['SERVER_NAME']; |