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

remotes/origin/stable45
Michael Gapczynski 13 years ago
parent 47c03a0eff
commit 6e15b231b0
  1. 2
      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) {

Loading…
Cancel
Save