mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
for now only attempt RFC9421 verification if we have the request
This commit is contained in:
@@ -110,7 +110,7 @@ class HTTPSig {
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (array_key_exists('signature-input', $headers) && array_key_exists('signature', $headers)) {
|
||||
if (App::$request && array_key_exists('signature-input', $headers) && array_key_exists('signature', $headers)) {
|
||||
$found = preg_match('/keyid="(.*?)"/', $headers['signature-input'], $matches);
|
||||
$keyId = ($found) ? $matches[1] : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user