aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-07-06 21:22:32 +0000
committerMario <mario@mariovavti.com>2025-07-06 21:22:32 +0000
commit8a4273a2f551e4230cd485887da8b407d9c843d2 (patch)
tree5f1e21192b33b2fdde73fee1c8eef6beb9eb6303
parentd396043faf7ec56e3362f07f3bea9d804485d36f (diff)
downloadvolse-hubzilla-8a4273a2f551e4230cd485887da8b407d9c843d2.tar.gz
volse-hubzilla-8a4273a2f551e4230cd485887da8b407d9c843d2.tar.bz2
volse-hubzilla-8a4273a2f551e4230cd485887da8b407d9c843d2.zip
for now only attempt RFC9421 verification if we have the request
-rw-r--r--Zotlabs/Web/HTTPSig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php
index ce56ae46b..f6228da5c 100644
--- a/Zotlabs/Web/HTTPSig.php
+++ b/Zotlabs/Web/HTTPSig.php
@@ -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] : '';