Skip to content

Commit c468d82

Browse files
authored
Merge pull request #34381 from nextcloud/backport/34289/stable24
[stable24] Url encode the web dav url for copying
2 parents 8ce8512 + a2063d6 commit c468d82

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
@@ -265,7 +265,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
265265
$nav->assign('quota', $storageInfo['quota']);
266266
$nav->assign('usage_relative', $storageInfo['relative']);
267267

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

270270
$contentItems = [];
271271

0 commit comments

Comments
 (0)