fix: correctly encode URIs (#85)

* fix: correctly encode URIs

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

* fix: encode uri component on copy, move and rename

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias
2019-01-26 10:46:48 +00:00
committed by GitHub
parent b394540f53
commit dd29a87107
6 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ export async function fetch (url) {
if (res.status === 200) {
let data = await res.json()
data.url = `/files${data.path}`
data.url = `/files${url}`
if (data.isDir) {
if (!data.url.endsWith('/')) data.url += '/'