dav: clean path before putting it in the statcache

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-06-23 14:39:17 +02:00
parent 05f360c5ec
commit 493e151be0
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

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);
}