From d5de59d73a1d7c8e4911196e70e5882d927df9e1 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Mon, 18 Mar 2019 15:44:43 -0400 Subject: [PATCH] PMC-541-A --- workflow/engine/src/ProcessMaker/Core/System.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/Core/System.php b/workflow/engine/src/ProcessMaker/Core/System.php index 16b21bc78..d846a9cc5 100644 --- a/workflow/engine/src/ProcessMaker/Core/System.php +++ b/workflow/engine/src/ProcessMaker/Core/System.php @@ -1534,7 +1534,8 @@ class System */ public static function getServerProtocol() { - return G::is_https() ? "https://" : "http://"; + $envProtocol = defined("REQUEST_SCHEME") && REQUEST_SCHEME === "https"; + return G::is_https() || $envProtocol ? "https://" : "http://"; } /**