mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix: encode basename in restore action
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
85ff1449d3
commit
7183e3db3d
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,
|
||||
|
|
|
|||
4
dist/files_trashbin-main.js
vendored
4
dist/files_trashbin-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_trashbin-main.js.map
vendored
2
dist/files_trashbin-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue