From a2d8bd4c112327082ff599161fa96c6ed053a646 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 27 Sep 2022 13:46:11 +0200 Subject: [PATCH] Url encode the web dav url for copying Signed-off-by: Anna Larch --- apps/files/lib/Controller/ViewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 82f56be9f1802..cfbc9afce2b07 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -266,7 +266,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal $nav->assign('quota', $storageInfo['quota']); $nav->assign('usage_relative', $storageInfo['relative']); - $nav->assign('webdav_url', \OCP\Util::linkToRemote('dav/files/' . $user)); + $nav->assign('webdav_url', \OCP\Util::linkToRemote('dav/files/' . rawurlencode($user))); $contentItems = [];