fix: encode URI component when get file from VFS API

This commit is contained in:
DanyLE 2023-07-07 20:06:41 +02:00
parent ac23a19909
commit 50c6ad4504

View File

@ -231,7 +231,7 @@ namespace OS {
*/
export function readfile(p: string, t: string): Promise<any> {
const path = `${API.REST}/VFS/get/`;
return API.get(path + p, t);
return API.get(path + encodeURIComponent(p), t);
}
/**