X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/e32a48c6f4c05505465ed7fe3ca70cb703868d42..8999b491d17e53015efb2de22d89e3928af7f7e9:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index 2546497..c2cad46 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -98,6 +98,9 @@ function is_ssl() { return true; } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { return true; + } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) { + if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') + return true; } return false; }