Merge pull request from annando/issue-14488

Issue 14488: Extended date change range for signatures
pull/14494/head
Tobias Diekershoff 2024-10-24 08:59:31 +02:00 zatwierdzone przez GitHub
commit f1097d9323
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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