summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-08-25 11:33:47 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-08-25 17:28:33 +0200
commit6b0fba15fa253ed53c1c4b439637828e3a9e767a (patch)
treea064548aad39fa1d8c21323df27fe1480c84a8b6 /apps
parent8aad5399189a8f238ff1dfe423f8f44a3117f2ac (diff)
downloadnextcloud-server-6b0fba15fa253ed53c1c4b439637828e3a9e767a.tar.gz
nextcloud-server-6b0fba15fa253ed53c1c4b439637828e3a9e767a.zip
fix: encode basename in restore action
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/src/actions/restoreAction.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/src/actions/restoreAction.ts b/apps/files_trashbin/src/actions/restoreAction.ts
index bff1e547efe..a29aef3ba83 100644
--- a/apps/files_trashbin/src/actions/restoreAction.ts
+++ b/apps/files_trashbin/src/actions/restoreAction.ts
@@ -51,7 +51,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,