From 4efdf9c5477214d54a632006f0712b2a068ada13 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 --- _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))