]> source.dussan.org Git - nextcloud-server.git/commitdiff
Url encode the web dav url for copying 34289/head
authorAnna Larch <anna@nextcloud.com>
Tue, 27 Sep 2022 11:46:11 +0000 (13:46 +0200)
committerAnna (Rebase PR Action) <miaulalala@users.noreply.github.com>
Sun, 2 Oct 2022 08:46:16 +0000 (08:46 +0000)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/files/lib/Controller/ViewController.php

index 82f56be9f18025a3df722dee9498ec94e03821cc..cfbc9afce2b078da09cce0a6b46fe7c6fd9a6811 100644 (file)
@@ -266,7 +266,7 @@ class ViewController extends Controller {
                $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 = [];