summaryrefslogtreecommitdiff
path: root/lib/Kolab/Utils/DAVBackend.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-03-28 17:28:44 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-03-28 17:28:44 (GMT)
commitd765eab497281d7a1e99ebd3468934e0cce32186 (patch)
tree819c3ac2b83c0003f8094623f5851b8111991375 /lib/Kolab/Utils/DAVBackend.php
parentfa401147bb842f8cdc1d55ffb28bdc489a61bbfa (diff)
downloadiRony-d765eab497281d7a1e99ebd3468934e0cce32186.tar.gz
Always generate valid URLs
Diffstat (limited to 'lib/Kolab/Utils/DAVBackend.php')
-rw-r--r--lib/Kolab/Utils/DAVBackend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Kolab/Utils/DAVBackend.php b/lib/Kolab/Utils/DAVBackend.php
index 3a1708c..205fecd 100644
--- a/lib/Kolab/Utils/DAVBackend.php
+++ b/lib/Kolab/Utils/DAVBackend.php
@@ -104,10 +104,10 @@ class DAVBackend
if ($_SERVER['SERVER_PORT'] != $default_port)
$url .= ':' . $_SERVER['SERVER_PORT'];
- if (dirname($_SERVER['SCRIPT_NAME']))
+ if (dirname($_SERVER['SCRIPT_NAME']) != '/')
$url .= dirname($_SERVER['SCRIPT_NAME']);
- $url .= join('/', array_map('urlencode', $parts));
+ $url .= '/' . join('/', array_map('urlencode', $parts));
return $url;
}