summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-29 12:07:01 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-10-29 12:07:31 (GMT)
commit86c048e2d0057987ad66d11d43df0948dfdf1453 (patch)
treecff7011e415409e9ba3410fe4f671946e62da353 /plugins
parentf59f9403f48a7bbe7a8673e4d4fd437ada7fc049 (diff)
downloadroundcubemail-plugins-kolab-86c048e2d0057987ad66d11d43df0948dfdf1453.tar.gz
Strip :port from HTTP_HOST when composing an absolute URL (#2444)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index 4dec708..f038caf 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -2181,7 +2181,7 @@ class calendar extends rcube_plugin
$schema = 'https';
$default_port = 443;
}
- $url = $schema . '://' . $_SERVER['HTTP_HOST'];
+ $url = $schema . '://' . preg_replace('/:\d+$/', '', $_SERVER['HTTP_HOST']);
if ($_SERVER['SERVER_PORT'] != $default_port)
$url .= ':' . $_SERVER['SERVER_PORT'];
if (dirname($_SERVER['SCRIPT_NAME']) != '/')