Skip to content

Commit

Permalink
Merge pull request #38965 from nextcloud/dav-directory-clean-cache-path
Browse files Browse the repository at this point in the history
dav: clean path before putting it in the statcache
  • Loading branch information
blizzz committed Jun 23, 2023
2 parents ff5ed3f + 493e151 commit 877ddd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ public function getDirectoryContent($directory): \Traversable {
foreach ($responses as $file => $response) {
$file = urldecode($file);
$file = substr($file, strlen($this->root));
$file = $this->cleanPath($file);
$this->statCache->set($file, $response);
yield $this->getMetaFromPropfind($file, $response);
}
Expand Down

0 comments on commit 877ddd2

Please sign in to comment.