summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-08 23:42:24 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-08 23:42:24 -0400
commit3e7951e1e6d8928e1c2e47d25489635d337cac04 (patch)
treed02b52e0b16062a0315d2c87c3b52158a9ecfe4d
parentfe7f095b08e765486ff3dda206b46bdb41ab7d31 (diff)
downloadnextcloud-server-3e7951e1e6d8928e1c2e47d25489635d337cac04.tar.gz
nextcloud-server-3e7951e1e6d8928e1c2e47d25489635d337cac04.zip
Normalize the file path for shared children as a precaution
-rw-r--r--lib/public/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 94644d0b657..5ed04c3e160 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -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) {