Skip to content
Snippets Groups Projects
Commit 5b0979a8 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix loose comparison

parent e3b88c8e
No related branches found
No related tags found
No related merge requests found
...@@ -818,12 +818,12 @@ class Message ...@@ -818,12 +818,12 @@ class Message
} }
$notBefore = $scd->getNotBefore(); $notBefore = $scd->getNotBefore();
if ($notBefore && $notBefore > time() + 60) { if (is_int($notBefore) && $notBefore > time() + 60) {
$lastError = 'NotBefore in SubjectConfirmationData is in the future: '.$notBefore; $lastError = 'NotBefore in SubjectConfirmationData is in the future: '.$notBefore;
continue; continue;
} }
$notOnOrAfter = $scd->getNotOnOrAfter(); $notOnOrAfter = $scd->getNotOnOrAfter();
if ($notOnOrAfter && $notOnOrAfter <= time() - 60) { if (is_int($notOnOrAfter) && $notOnOrAfter <= time() - 60) {
$lastError = 'NotOnOrAfter in SubjectConfirmationData is in the past: '.$notOnOrAfter; $lastError = 'NotOnOrAfter in SubjectConfirmationData is in the past: '.$notOnOrAfter;
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment