diff --git a/upload/includes/functions.php b/upload/includes/functions.php index 602a4e8e..ba563baa 100644 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -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; }