fix: encode basename in restore action

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/39842/head
Daniel Kesselberg 2023-08-25 11:33:47 +07:00
parent 85ff1449d3
commit 7183e3db3d
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
3 changed files with 4 additions and 4 deletions

@ -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