Skip to content

Commit 7055a27

Browse files
committed
Fix typo
1 parent 76b0652 commit 7055a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Saml2/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,10 @@ public function validateTimestamps()
508508
for ($i = 0; $i < $timestampNodes->length; $i++) {
509509
$nbAttribute = $timestampNodes->item($i)->attributes->getNamedItem("NotBefore");
510510
$naAttribute = $timestampNodes->item($i)->attributes->getNamedItem("NotOnOrAfter");
511-
if ($nbAttribute && Onelogin_SAML2_Utils::parseSAML2Time($nbAttribute->textContent) > time() + OneLogin_Saml2_Constants::ALOWED_CLOCK_DRIFT) {
511+
if ($nbAttribute && OneLogin_SAML2_Utils::parseSAML2Time($nbAttribute->textContent) > time() + OneLogin_Saml2_Constants::ALOWED_CLOCK_DRIFT) {
512512
return false;
513513
}
514-
if ($naAttribute && Onelogin_SAML2_Utils::parseSAML2Time($naAttribute->textContent) + OneLogin_Saml2_Constants::ALOWED_CLOCK_DRIFT <= time()) {
514+
if ($naAttribute && OneLogin_SAML2_Utils::parseSAML2Time($naAttribute->textContent) + OneLogin_Saml2_Constants::ALOWED_CLOCK_DRIFT <= time()) {
515515
return false;
516516
}
517517
}

0 commit comments

Comments
 (0)