Skip to content

Commit

Permalink
fix: ignore any result=none when other status=pass (#72)
Browse files Browse the repository at this point in the history
Another go at #70

Move check from the rfc5451_extract_authresheader() header parsing to status check logic.
  • Loading branch information
listerr authored Apr 10, 2024
1 parent 9a6718e commit c5ba704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authres_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function get_authentication_status($headers, $show_statuses = 0, $uid = 0
} elseif ($status == self::STATUS_NORES) {
$image = 'status_nores.png';
$alt = 'noauthresults';
} elseif ($status == self::STATUS_PASS) {
} elseif (($status == self::STATUS_PASS) || ($status == self::STATUS_PASS + self::STATUS_NOSIG)) {
$image = 'status_pass.png';
$alt = 'signaturepass';
} else {
Expand Down

0 comments on commit c5ba704

Please sign in to comment.