diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-07 18:56:26 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-07 18:56:26 -0800 |
commit | 85b7c90637b03d4f3093f6a3557d807dbd6dd8b3 (patch) | |
tree | 441f9202a951c132de9a878cd490a43b374cba3c /Zotlabs | |
parent | e9ae51cfbca4ca4c2a5e9a2c452031e31985d093 (diff) | |
download | volse-hubzilla-85b7c90637b03d4f3093f6a3557d807dbd6dd8b3.tar.gz volse-hubzilla-85b7c90637b03d4f3093f6a3557d807dbd6dd8b3.tar.bz2 volse-hubzilla-85b7c90637b03d4f3093f6a3557d807dbd6dd8b3.zip |
strip acct: from OWA auth to API endpoints
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Cdav.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Dav.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Cdav.php b/Zotlabs/Module/Cdav.php index 91d279f7a..6737ac4ee 100644 --- a/Zotlabs/Module/Cdav.php +++ b/Zotlabs/Module/Cdav.php @@ -39,7 +39,7 @@ class Cdav extends \Zotlabs\Web\Controller { $sigblock = \Zotlabs\Web\HTTPSig::parse_sigheader($_SERVER[$head]); if($sigblock) { - $keyId = $sigblock['keyId']; + $keyId = str_replace('acct:','',$sigblock['keyId']); if($keyId) { $r = q("select * from hubloc where hubloc_addr = '%s' limit 1", dbesc($keyId) diff --git a/Zotlabs/Module/Dav.php b/Zotlabs/Module/Dav.php index d506fe9f5..9f64e2fea 100644 --- a/Zotlabs/Module/Dav.php +++ b/Zotlabs/Module/Dav.php @@ -48,7 +48,7 @@ class Dav extends \Zotlabs\Web\Controller { $sigblock = \Zotlabs\Web\HTTPSig::parse_sigheader($_SERVER[$head]); if($sigblock) { - $keyId = $sigblock['keyId']; + $keyId = str_replace('acct:','',$sigblock['keyId']); if($keyId) { $r = q("select * from hubloc where hubloc_addr = '%s' limit 1", dbesc($keyId) |