diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-14 12:27:30 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-15 19:34:25 -0400 |
commit | ec3033a5ddfe285722e35c73b18264cd9fb6265d (patch) | |
tree | 251fe2f38cc8d26ae589dd1094aa088a29542834 /apps | |
parent | c1744d2eb625b56f349cde2d575e82f9ea4c65f6 (diff) | |
download | nextcloud-server-ec3033a5ddfe285722e35c73b18264cd9fb6265d.tar.gz nextcloud-server-ec3033a5ddfe285722e35c73b18264cd9fb6265d.zip |
Check for '\' as well when searching for parent folders, because Windows returns '\' for dirname()
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib_share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 356c958b6ce..31170f07fd1 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -276,7 +276,7 @@ class OC_Share { $userDirectory = substr($target, 0, strpos($target, "files") + 5); $target = dirname($target); $result = array(); - while ($target != "" && $target != "/" && $target != "." && $target != $userDirectory) { + while ($target != "" && $target != "/" && $target != "." && $target != $userDirectory && $target != "\\") { // Check if the parent directory of this target location is shared $result = $query->execute(array($target))->fetchAll(); if (count($result) > 0) { |