From 2623ec8d04683cdc537fafde04f519e25d7e75ff Mon Sep 17 00:00:00 2001 From: purple Date: Tue, 3 Oct 2023 21:56:13 +0200 Subject: [PATCH] fix(BlueprintClientLibrary, BlueprintAdminLibrary): Switch to built-in php function for file reading. --- .../Libraries/ExtensionLibrary/Admin/BlueprintAdminLibrary.php | 2 +- .../ExtensionLibrary/Client/BlueprintClientLibrary.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {