From 6585ebc89bcfbae777a346bda9baeaa3f1c7d4e6 Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Tue, 1 Mar 2022 04:14:53 -0500 Subject: [PATCH] [ActionFactory] Prevent leaking working directory (#2480) --- lib/ActionFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ActionFactory.php b/lib/ActionFactory.php index 8146e542..46e28c5e 100644 --- a/lib/ActionFactory.php +++ b/lib/ActionFactory.php @@ -24,7 +24,7 @@ class ActionFactory extends FactoryAbstract { $filePath = $this->buildFilePath($name); if(!file_exists($filePath)) { - throw new \Exception('File ' . $filePath . ' does not exist!'); + throw new \Exception('Action ' . $name . ' does not exist!'); } require_once $filePath;