From 0612b89825f268f06dede7c7dc75247d00071fcd Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 1 Jul 2017 09:34:51 +0100 Subject: [PATCH] Fix move for UTF8 chars Former-commit-id: 020cff156e422b60d3e441fd75798c2031072aec [formerly a2fa4abf94c6ff74446ebb47b8fa7e39f7b74622] [formerly 3d1c58b5d0586f427d4b2dc1a08497ac700a585e [formerly 4efdf9c5477214d54a632006f0712b2a068ada13]] Former-commit-id: f953ea1440da35b2dbb2d0c8eaa53a24a72365a7 [formerly 3f65e7454f240d5dca5fa5c5dee0e9ba2e9b0d1b] Former-commit-id: 4080254772435dd935048942e87f1b11c08985e7 --- _assets/src/components/ListingItem.vue | 2 +- _assets/src/components/MovePrompt.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_assets/src/components/ListingItem.vue b/_assets/src/components/ListingItem.vue index d8efc13a..a3cf2e17 100644 --- a/_assets/src/components/ListingItem.vue +++ b/_assets/src/components/ListingItem.vue @@ -87,7 +87,7 @@ export default { let url = this.req.data.items[i].url let name = this.req.data.items[i].name - promises.push(webdav.move(url, this.url + name)) + promises.push(webdav.move(url, this.url + encodeURIComponent(name))) } Promise.all(promises) diff --git a/_assets/src/components/MovePrompt.vue b/_assets/src/components/MovePrompt.vue index 957c0271..72313067 100644 --- a/_assets/src/components/MovePrompt.vue +++ b/_assets/src/components/MovePrompt.vue @@ -67,7 +67,7 @@ export default { for (let item of this.selected) { let from = this.req.data.items[item].url - let to = dest + '/' + this.req.data.items[item].name + let to = dest + '/' + encodeURIComponent(this.req.data.items[item].name) to = to.replace('//', '/') promises.push(webdav.move(from, to))