Issue 14488: Extended date change range for signatures

This commit is contained in:
Michael 2024-10-23 21:13:45 +00:00
parent a0a8aeb304
commit 1c081ced74

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