Merge pull request #436 from mrjk990/patch-1
fix https when $_SERVER['HTTPS'] return null
This commit is contained in:
commit
084fce4517
1 changed files with 2 additions and 0 deletions
|
@ -4191,6 +4191,8 @@
|
|||
}
|
||||
} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
|
||||
return true;
|
||||
} elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue