mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-04-23 23:56:44 +02:00
fix: encode URI component when get file from VFS API
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
This commit is contained in:
parent
4c01eeedfe
commit
9a4d438caf
@ -231,7 +231,7 @@ namespace OS {
|
|||||||
*/
|
*/
|
||||||
export function readfile(p: string, t: string): Promise<any> {
|
export function readfile(p: string, t: string): Promise<any> {
|
||||||
const path = `${API.REST}/VFS/get/`;
|
const path = `${API.REST}/VFS/get/`;
|
||||||
return API.get(path + p, t);
|
return API.get(path + encodeURIComponent(p), t);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user