diff --git a/includes/services/GuardDriver.php b/includes/services/GuardDriver.php index 083fb2c..5e013f7 100644 --- a/includes/services/GuardDriver.php +++ b/includes/services/GuardDriver.php @@ -182,7 +182,7 @@ public function validate(array $flags = ['damaged' => true, 'unknown' => true, ' } public function generate() : void { - $guard = new IniFile($this->file, true); + $guard = new IniFile($this->file, true, true); $this->scan(); $guard->setAll($this->get(), true); } diff --git a/includes/tools/CheckFileIntegrity.php b/includes/tools/CheckFileIntegrity.php index f04e34e..11793a7 100644 --- a/includes/tools/CheckFileIntegrity.php +++ b/includes/tools/CheckFileIntegrity.php @@ -330,7 +330,7 @@ public function ToolGuardSetFile() : ?string { goto set_guard; } - $ini = new IniFile($guard_file, true); + $ini = new IniFile($guard_file, true, true); if(is_null($ini->get('keys'))){ $this->ave->echo(" File don't contain one of required information (Not a valid guard file ?)"); goto set_guard; @@ -340,7 +340,7 @@ public function ToolGuardSetFile() : ?string { } public function ToolGuardUpdate(string $guard_file, array $params) : void { - $ini = new IniFile($guard_file, true); + $ini = new IniFile($guard_file, true, true); $input = pathinfo($guard_file, PATHINFO_DIRNAME); $cwd = getcwd(); chdir($input);