fix(BlueprintClientLibrary, BlueprintAdminLibrary): Switch to built-in php function for file reading.
This commit is contained in:
parent
e3e1612615
commit
2623ec8d04
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class BlueprintAdminLibrary
|
||||||
| fileWipe("path");
|
| fileWipe("path");
|
||||||
*/
|
*/
|
||||||
public function fileRead($path) {
|
public function fileRead($path) {
|
||||||
return shell_exec("cat ".escapeshellarg($path).";");
|
return file_get_contents($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fileMake($path) {
|
public function fileMake($path) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ class BlueprintClientLibrary
|
||||||
| fileWipe("path");
|
| fileWipe("path");
|
||||||
*/
|
*/
|
||||||
public function fileRead($path) {
|
public function fileRead($path) {
|
||||||
return shell_exec("cat ".escapeshellarg($path).";");
|
return file_get_contents($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fileMake($path) {
|
public function fileMake($path) {
|
||||||
|
|
Loading…
Reference in a new issue