1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-04-17 06:04:33 +03:00

[ActionFactory] Prevent leaking working directory ()

This commit is contained in:
Yaman Qalieh 2022-03-01 04:14:53 -05:00 committed by GitHub
parent d94bb08259
commit 6585ebc89b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ class ActionFactory extends FactoryAbstract {
$filePath = $this->buildFilePath($name); $filePath = $this->buildFilePath($name);
if(!file_exists($filePath)) { if(!file_exists($filePath)) {
throw new \Exception('File ' . $filePath . ' does not exist!'); throw new \Exception('Action ' . $name . ' does not exist!');
} }
require_once $filePath; require_once $filePath;