mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Fix move for UTF8 chars
This commit is contained in:
parent
5fd7429d5d
commit
4efdf9c547
@ -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)
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user