mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Check for '\' as well when searching for parent folders, because Windows returns '\' for dirname()
This commit is contained in:
parent
c1744d2eb6
commit
ec3033a5dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue