diff --git a/app/BlueprintFramework/Libraries/ExtensionLibrary/Admin/BlueprintAdminLibrary.php b/app/BlueprintFramework/Libraries/ExtensionLibrary/Admin/BlueprintAdminLibrary.php index 2f4aafb..2b7f3ab 100644 --- a/app/BlueprintFramework/Libraries/ExtensionLibrary/Admin/BlueprintAdminLibrary.php +++ b/app/BlueprintFramework/Libraries/ExtensionLibrary/Admin/BlueprintAdminLibrary.php @@ -64,7 +64,7 @@ class BlueprintAdminLibrary | fileWipe("path"); */ public function fileRead($path) { - return shell_exec("cat ".escapeshellarg($path).";"); + return file_get_contents($path); } public function fileMake($path) { diff --git a/app/BlueprintFramework/Libraries/ExtensionLibrary/Client/BlueprintClientLibrary.php b/app/BlueprintFramework/Libraries/ExtensionLibrary/Client/BlueprintClientLibrary.php index de9ca8a..902e9a3 100644 --- a/app/BlueprintFramework/Libraries/ExtensionLibrary/Client/BlueprintClientLibrary.php +++ b/app/BlueprintFramework/Libraries/ExtensionLibrary/Client/BlueprintClientLibrary.php @@ -39,7 +39,7 @@ class BlueprintClientLibrary | fileWipe("path"); */ public function fileRead($path) { - return shell_exec("cat ".escapeshellarg($path).";"); + return file_get_contents($path); } public function fileMake($path) {