Merge pull request #14493 from annando/issue-14488

Issue 14488: Extended date change range for signatures
This commit is contained in:
Tobias Diekershoff 2024-10-24 08:59:31 +02:00 committed by GitHub
commit f1097d9323
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -761,9 +761,9 @@ class HTTPSignature
}
if (in_array('(expires)', $sig_block['headers']) && !empty($sig_block['expires'])) {
$expired = min($sig_block['expires'], $created + 300);
$expired = min($sig_block['expires'], $created + 3600);
} else {
$expired = $created + 300;
$expired = $created + 3600;
}
// Check if the signed date field is in an acceptable range