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))