aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-03-18 07:58:14 +0000
committerMario <mario@mariovavti.com>2025-03-18 07:58:14 +0000
commit2c1c12825daffcf1daaca6e4d400430732636849 (patch)
tree42b351cd02e990303ab7a2bffffd1b5ae9cf20d0 /Zotlabs/Module
parentbbcf7e9aa13a14f0affa57926ed8beb90b7db332 (diff)
downloadvolse-hubzilla-2c1c12825daffcf1daaca6e4d400430732636849.tar.gz
volse-hubzilla-2c1c12825daffcf1daaca6e4d400430732636849.tar.bz2
volse-hubzilla-2c1c12825daffcf1daaca6e4d400430732636849.zip
we require the HTTP signature to be set in the HTTP_AUTHORIZATION field somewhere down the line (probably in Web/HTTPSig). Make sure it is there.
(cherry picked from commit 5188b9cef5053dc22e3b749c841a1f2e46360296) Co-authored-by: Mario <mario@mariovavti.com>
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Owa.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php
index 21082e166..254b1c7d1 100644
--- a/Zotlabs/Module/Owa.php
+++ b/Zotlabs/Module/Owa.php
@@ -27,6 +27,8 @@ class Owa extends Controller {
$this->error('Missing or invalid authorization header.');
}
+ $_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['HTTP_AUTHORIZATION'] ?? $_SERVER['REDIRECT_REMOTE_USER'];
+
$sigblock = HTTPSig::parse_sigheader($_SERVER['HTTP_AUTHORIZATION']);
if ($sigblock) {
$keyId = $sigblock['keyId'];