mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Merge pull request #14493 from annando/issue-14488
Issue 14488: Extended date change range for signatures
This commit is contained in:
commit
f1097d9323
1 changed files with 2 additions and 2 deletions
|
@ -761,9 +761,9 @@ class HTTPSignature
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('(expires)', $sig_block['headers']) && !empty($sig_block['expires'])) {
|
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 {
|
} else {
|
||||||
$expired = $created + 300;
|
$expired = $created + 3600;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the signed date field is in an acceptable range
|
// Check if the signed date field is in an acceptable range
|
||||||
|
|
Loading…
Reference in a new issue