From 0805bf61f8f0a5e13ed408294d5af4eeaa787e43 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 16 Sep 2004 22:01:38 +0000 Subject: [PATCH] fixed bug [ 1027668 ] $$Link$$ not using https --- calendar/inc/class.bocalendar.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 2704e3daaa..931c1548b5 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -2637,7 +2637,7 @@ // if url is only a path, try guessing the rest ;-) if ($GLOBALS['phpgw_info']['server']['webserver_url'][0] == '/') { - $details['link'] = ($GLOBALS['phpgw_info']['server']['enforce_ssl'] ? 'https://' : 'http://'). + $details['link'] = ($GLOBALS['phpgw_info']['server']['enforce_ssl'] || $_SERVER['HTTPS'] ? 'https://' : 'http://'). ($GLOBALS['phpgw_info']['server']['hostname'] ? $GLOBALS['phpgw_info']['server']['hostname'] : 'localhost'). $details['link']; }