summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-06-27 20:42:44 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-06-27 20:43:40 (GMT)
commitdc5e3cb968288c8c0e708231a406e8772317ad13 (patch)
tree455946c60de8cd4fb58cd5fa436fd677eef17bfb
parente0288c68c28012a79a06880a7190625b4421a82f (diff)
downloadroundcubemail-plugins-kolab-dc5e3cb968288c8c0e708231a406e8772317ad13.tar.gz
Make sure only the first path segment is removed
-rw-r--r--plugins/libkolab/lib/kolab_storage_folder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_folder.php b/plugins/libkolab/lib/kolab_storage_folder.php
index 9facc8d..93e081e 100644
--- a/plugins/libkolab/lib/kolab_storage_folder.php
+++ b/plugins/libkolab/lib/kolab_storage_folder.php
@@ -204,7 +204,7 @@ class kolab_storage_folder
if (is_array($nsdata[0]) && strlen($nsdata[0][0]) && strpos($this->name, $nsdata[0][0]) === 0) {
$subpath = substr($this->name, strlen($nsdata[0][0]));
if ($ns == 'other') {
- list($user, $suffix) = explode($nsdata[0][1], $subpath);
+ list($user, $suffix) = explode($nsdata[0][1], $subpath, 2);
$subpath = $suffix;
}
}