]> source.dussan.org Git - nextcloud-server.git/commitdiff
dav: clean path before putting it in the statcache 38965/head
authorRobin Appelman <robin@icewind.nl>
Fri, 23 Jun 2023 12:39:17 +0000 (14:39 +0200)
committerRobin Appelman <robin@icewind.nl>
Fri, 23 Jun 2023 12:39:17 +0000 (14:39 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Storage/DAV.php

index 6eab2df7f2f0c60361bff58f807016a6b2da4f69..70f22a1703400b89c456c04edbe126b6569153db 100644 (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);
                        }