Skip to content

Commit

Permalink
add compression guard in Check File Integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
AbyssMorgan committed Dec 10, 2023
1 parent 8a70be8 commit f43583b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/services/GuardDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions includes/tools/CheckFileIntegrity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit f43583b

Please sign in to comment.