mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Fix move for UTF8 chars
Former-commit-id: 020cff156e422b60d3e441fd75798c2031072aec [formerly a2fa4abf94c6ff74446ebb47b8fa7e39f7b74622] [formerly 3d1c58b5d0586f427d4b2dc1a08497ac700a585e [formerly 4efdf9c547
]]
Former-commit-id: f953ea1440da35b2dbb2d0c8eaa53a24a72365a7 [formerly 3f65e7454f240d5dca5fa5c5dee0e9ba2e9b0d1b]
Former-commit-id: 4080254772435dd935048942e87f1b11c08985e7
This commit is contained in:
parent
b8a5b1500c
commit
0612b89825
@ -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