aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-06-23 14:39:17 +0200
committerRobin Appelman <robin@icewind.nl>2023-06-23 14:39:17 +0200
commit493e151be03102e4080c507d2614badcb03dad62 (patch)
tree249f74699a640b30c948354f70118e1a70beaeeb /lib/private/Files
parent05f360c5ec76bf87f55bdbc0385aa7972ec11cbd (diff)
downloadnextcloud-server-493e151be03102e4080c507d2614badcb03dad62.tar.gz
nextcloud-server-493e151be03102e4080c507d2614badcb03dad62.zip
dav: clean path before putting it in the statcache
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Storage/DAV.php1
1 files changed, 1 insertions, 0 deletions
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);
}