Pārlūkot izejas kodu

Fix breaking when spaces in log name (closes #5)

tags/v0.8.2
itismadness pirms 6 gadiem
vecāks
revīzija
b38c25a13d
1 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  1. +8
    -4
      src/Logchecker.php

+ 8
- 4
src/Logchecker.php Parādīt failu

@@ -439,10 +439,14 @@ class Logchecker {
$GoodString = 'OK';
}

$CommandExists = Util::commandExists($Command);
$Out = shell_exec("{$Command} {$this->LogPath}");
if (Util::strposArray($Out, $BadStrings) !== false || strpos($Out, $GoodString) === false) {
$this->Checksum = false;
if (Util::commandExists($Command)) {
$Out = shell_exec("{$Command} ".escapeshellarg($this->LogPath));
if ($Out == null || Util::strposArray($Out, $BadStrings) !== false || strpos($Out, $GoodString) === false) {
$this->Checksum = false;
}
}
else {
$this->account("Could not find {$Command}, checksum not validated.", false, false, false, true);
}
}



Notiek ielāde…
Atcelt
Saglabāt