From: Robin Appelman Date: Fri, 23 Jun 2023 12:39:17 +0000 (+0200) Subject: dav: clean path before putting it in the statcache X-Git-Tag: v28.0.0beta1~840^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=493e151be03102e4080c507d2614badcb03dad62;p=nextcloud-server.git dav: clean path before putting it in the statcache Signed-off-by: Robin Appelman --- diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 6eab2df7f2f..70f22a17034 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -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); }