Merge pull request #39842 from nextcloud/encode-filename-trashbin-restore

This commit is contained in:
Daniel 2023-08-25 17:08:04 +02:00 committed by GitHub
commit 5d9b84dd58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ registerFileAction(new FileAction({
async exec(node: Node) {
try {
const destination = generateRemoteUrl(`dav/trashbin/${getCurrentUser()?.uid}/restore/${node.basename}`)
const destination = generateRemoteUrl(encodeURI(`dav/trashbin/${getCurrentUser()?.uid}/restore/${node.basename}`))
await axios({
method: 'MOVE',
url: node.source,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long