Branch 'roundcubemail-plugins-kolab-3.1' - plugins/calendar
Thomas Brüderli
bruederli at kolabsys.com
Tue Oct 29 13:08:32 CET 2013
plugins/calendar/calendar.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 86c048e2d0057987ad66d11d43df0948dfdf1453
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Tue Oct 29 13:07:01 2013 +0100
Strip :port from HTTP_HOST when composing an absolute URL (#2444)
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']) != '/')
More information about the commits
mailing list