Skip to content
Snippets Groups Projects
Commit 6f14b653 authored by stevereis's avatar stevereis
Browse files

fix: Prevent local file inclusion exploit

parent 15238b5e
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,8 @@ export class AssetsService { ...@@ -34,6 +34,8 @@ export class AssetsService {
); );
} }
if (!filePath.includes('assets/engines')) return undefined;
return fs.existsSync(filePath) ? filePath : undefined; return fs.existsSync(filePath) ? filePath : undefined;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment