From 9dee5c655894509402332ec7426b459e59a18e73 Mon Sep 17 00:00:00 2001 From: davidcallizaya Date: Fri, 11 Aug 2017 13:39:21 -0400 Subject: [PATCH] HOR-3665 Do not autocomplete port for custom web entry url. --- .../engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php index adf8a45bf..f362e17e4 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php @@ -1344,14 +1344,12 @@ class WebEntryEvent $weData ) { $http = (G::is_https()) ? "https://" : "http://"; - $port = $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']; if ($weLinkGeneration === 'ADVANCED') { $domain = $weLinkDomain; $hasProtocol = strpos($domain, 'http://') === 0 || strpos($domain, 'https://') === 0; - $hasPort = preg_match('/\:\d+$/', $domain); $url = ($hasProtocol ? '' : $http) . - $domain . ($hasPort ? '' : $port) . + $domain . "/sys" . SYS_SYS . "/" . $weLinkLanguage . "/" . $weLinkSkin . "/" . $prj_uid;