Merge pull request #179 from kent1D/patch-1

Error on isset for X_FORWARDED_PROTO
This commit is contained in:
Benjamin Sonntag 2017-08-12 16:42:40 +02:00 committed by GitHub
commit 798f7e7681
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ $err = new m_err();
$authip = new m_authip(); $authip = new m_authip();
$hooks = new m_hooks(); $hooks = new m_hooks();
if (!isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") { if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") {
$_SERVER["HTTPS"]="on"; $_SERVER["HTTPS"]="on";
} }