Skip to content

Commit

Permalink
Merge pull request #39842 from nextcloud/encode-filename-trashbin-res…
Browse files Browse the repository at this point in the history
…tore
  • Loading branch information
kesselb authored Aug 25, 2023
2 parents 85ff144 + 7183e3d commit 5d9b84d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files_trashbin/src/actions/restoreAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions dist/files_trashbin-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_trashbin-main.js.map

Large diffs are not rendered by default.

0 comments on commit 5d9b84d

Please sign in to comment.