mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Issue 14488: Extended date change range for signatures
This commit is contained in:
parent
a0a8aeb304
commit
1c081ced74
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