Normalize the file path for shared children as a precaution

remotes/origin/stable45
Michael Gapczynski 2012-09-08 23:42:24 +07:00
parent fe7f095b08
commit 3e7951e1e6
1 changed files with 2 additions and 1 deletions

@ -629,6 +629,7 @@ class Share {
}
$root = strlen($root);
$query = \OC_DB::prepare('SELECT '.$select.' FROM `*PREFIX*share` '.$where, $queryLimit);
$result = $query->execute($queryArgs);
$items = array();
$targets = array();
@ -706,7 +707,7 @@ class Share {
} else {
$childItem['file_source'] = \OC_FileCache::getId($child['file_path']);
}
$childItem['file_target'] = $child['file_path'];
$childItem['file_target'] = \OC_Filesystem::normalizePath($child['file_path']);
}
if (isset($item)) {
if ($childItem[$column] == $item) {