X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/47405a7fcc40dcb517753c22430997fe5bfc4212..b6fd6265770c82539cfb26d053e0345fe32060e0:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index 89c36b0..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; } @@ -904,7 +907,7 @@ jirafeau_async_push ($ref, $data, $code, $max_file_size) * @param $ref asynchronous upload reference * @param $code client code for this operation * @param $crypt boolean asking to crypt or not - * @param $link_name_length link name lenght + * @param $link_name_length link name length * @return a string containing the download reference followed by a delete code or the string "Error" */ function