Skip to content

Commit

Permalink
Use string contains check on verification output (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklambrechts authored Dec 12, 2022
1 parent 92712b4 commit cc94228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/Signature/ProcessSpawnService.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ public function verify(
// Successful and failure are expected.
if (
!empty($errOutput)
&& !str_starts_with($errOutput, "Verification successful")
&& !str_starts_with($errOutput, "Verification failure")
&& !str_contains($errOutput, "Verification successful")
&& !str_contains($errOutput, "Verification failure")
) {
throw CryptoException::verify($errOutput);
}
Expand Down

0 comments on commit cc94228

Please sign in to comment.