mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:10:12 +00:00
Improved logging for invalid HTTP signatures
This commit is contained in:
parent
cea00f5f75
commit
d8901452fc
2 changed files with 16 additions and 2 deletions
|
@ -111,9 +111,12 @@ class Receiver
|
|||
}
|
||||
|
||||
$http_signer = HTTPSignature::getSigner($body, $header);
|
||||
if (empty($http_signer)) {
|
||||
if ($http_signer === false) {
|
||||
Logger::warning('Invalid HTTP signature, message will be discarded.');
|
||||
return;
|
||||
} elseif (empty($http_signer)) {
|
||||
Logger::info('Signer is a tombstone. The message will be discarded, the signer account is deleted.');
|
||||
return;
|
||||
} else {
|
||||
Logger::info('Valid HTTP signature', ['signer' => $http_signer]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue