Merge pull request #38965 from nextcloud/dav-directory-clean-cache-path

dav: clean path before putting it in the statcache
This commit is contained in:
Arthur Schiwon 2023-06-23 18:48:56 +02:00 committed by GitHub
commit 877ddd2827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -923,6 +923,7 @@ class DAV extends Common {
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);
}