Skip to content
Snippets Groups Projects
Commit ec3033a5 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Check for '\' as well when searching for parent folders, because Windows returns '\' for dirname()

parent c1744d2e
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment