Skip to content

Commit 4f53a83

Browse files
committed
Url encode the web dav url for copying
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent 9d02704 commit 4f53a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
266266
$nav->assign('quota', $storageInfo['quota']);
267267
$nav->assign('usage_relative', $storageInfo['relative']);
268268

269-
$nav->assign('webdav_url', \OCP\Util::linkToRemote('dav/files/' . $user));
269+
$nav->assign('webdav_url', \OCP\Util::linkToRemote('dav/files/' . rawurlencode($user)));
270270

271271
$contentItems = [];
272272

0 commit comments

Comments
 (0)