This commit is contained in:
Zef Hemel
2022-10-10 16:38:04 +02:00
parent 415e53904b
commit 820fc83c8b
3 changed files with 1 additions and 14 deletions
-5
View File
@@ -143,11 +143,6 @@ export class HttpServer {
"get-plug:file",
async (plugPath: string): Promise<Manifest> => {
const resolvedPath = path.resolve(plugPath);
if (!resolvedPath.startsWith(Deno.cwd())) {
throw new Error(
`Plugin path outside working directory, this is disallowed: ${resolvedPath}`,
);
}
try {
const manifestJson = await Deno.readTextFile(resolvedPath);
return JSON.parse(manifestJson);