Make sure only the first path segment is removed

This commit is contained in:
Thomas Bruederli 2013-06-27 22:42:44 +02:00
parent 6441578bc1
commit dfb75c6fd5

View file

@ -246,7 +246,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;
}
}