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 4cb0d62776378273b73436e37bab9104a81dfd54
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 9a76a79..813d5ed 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -2273,7 +2273,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