Make sure only the first path segment is removed
This commit is contained in:
parent
6441578bc1
commit
dfb75c6fd5
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ class kolab_storage_folder
|
||||||
if (is_array($nsdata[0]) && strlen($nsdata[0][0]) && strpos($this->name, $nsdata[0][0]) === 0) {
|
if (is_array($nsdata[0]) && strlen($nsdata[0][0]) && strpos($this->name, $nsdata[0][0]) === 0) {
|
||||||
$subpath = substr($this->name, strlen($nsdata[0][0]));
|
$subpath = substr($this->name, strlen($nsdata[0][0]));
|
||||||
if ($ns == 'other') {
|
if ($ns == 'other') {
|
||||||
list($user, $suffix) = explode($nsdata[0][1], $subpath);
|
list($user, $suffix) = explode($nsdata[0][1], $subpath, 2);
|
||||||
$subpath = $suffix;
|
$subpath = $suffix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue