fix: encode basename in restore action

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/39842/head
Daniel Kesselberg 2 years ago
parent 85ff1449d3
commit 7183e3db3d
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 2
      apps/files_trashbin/src/actions/restoreAction.ts
  2. 4
      dist/files_trashbin-main.js
  3. 2
      dist/files_trashbin-main.js.map

@ -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
Loading…
Cancel
Save