Skip to content

Commit 663751c

Browse files
authored
Merge pull request #34289 from nextcloud/fix/url-encode-webdav-url
Url encode the web dav url for copying
2 parents 905753b + 25409cb commit 663751c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)