]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check for '\' as well when searching for parent folders, because Windows returns...
authorMichael Gapczynski <GapczynskiM@gmail.com>
Thu, 14 Jun 2012 16:27:30 +0000 (12:27 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Fri, 15 Jun 2012 23:34:25 +0000 (19:34 -0400)
apps/files_sharing/lib_share.php

index 356c958b6ceba36ae021522943bd0fc917c1a501..31170f07fd1251d81cbac77a946272d01c849747 100644 (file)
@@ -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) {