summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2022-09-27 13:46:11 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-10-02 12:32:25 +0000
commita2d8bd4c112327082ff599161fa96c6ed053a646 (patch)
tree17578bbd65ca34d8f85b6520c48d977777cafa06
parent115058720a99cec728264047c21bd0c3c2dac550 (diff)
downloadnextcloud-server-a2d8bd4c112327082ff599161fa96c6ed053a646.tar.gz
nextcloud-server-a2d8bd4c112327082ff599161fa96c6ed053a646.zip
Url encode the web dav url for copying
Signed-off-by: Anna Larch <anna@nextcloud.com>
-rw-r--r--apps/files/lib/Controller/ViewController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 82f56be9f18..cfbc9afce2b 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -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 = [];