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:
@@ -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 += '/'
|
||||
|
||||
Reference in New Issue
Block a user