diff options
author | Mario <mario@mariovavti.com> | 2019-06-27 13:05:25 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-06-27 13:05:25 +0200 |
commit | 49ba3ffee6e53eefe11a03c62ee673398717b167 (patch) | |
tree | a0f0b45249487bd471bcf0545dfbb23f7b871623 /Zotlabs/Module/Cdav.php | |
parent | 5ccef18d4e5b7901f78a11e0124c16e1c484e3bf (diff) | |
parent | cf844cb27c02c3aae636eb1aa1587b1d5e3e81a0 (diff) | |
download | volse-hubzilla-49ba3ffee6e53eefe11a03c62ee673398717b167.tar.gz volse-hubzilla-49ba3ffee6e53eefe11a03c62ee673398717b167.tar.bz2 volse-hubzilla-49ba3ffee6e53eefe11a03c62ee673398717b167.zip |
Merge branch 'httpsig' into 'dev'
http signature consolidation
See merge request hubzilla/core!1685
Diffstat (limited to 'Zotlabs/Module/Cdav.php')
-rw-r--r-- | Zotlabs/Module/Cdav.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Cdav.php b/Zotlabs/Module/Cdav.php index de639e281..b199019c1 100644 --- a/Zotlabs/Module/Cdav.php +++ b/Zotlabs/Module/Cdav.php @@ -4,6 +4,7 @@ namespace Zotlabs\Module; use App; use Zotlabs\Lib\Apps; use Zotlabs\Web\Controller; +use Zotlabs\Web\HTTPSig; require_once('include/event.php'); @@ -41,7 +42,7 @@ class Cdav extends Controller { continue; } - $sigblock = \Zotlabs\Web\HTTPSig::parse_sigheader($_SERVER[$head]); + $sigblock = HTTPSig::parse_sigheader($_SERVER[$head]); if($sigblock) { $keyId = str_replace('acct:','',$sigblock['keyId']); if($keyId) { @@ -64,7 +65,7 @@ class Cdav extends Controller { continue; if($record) { - $verified = \Zotlabs\Web\HTTPSig::verify('',$record['channel']['channel_pubkey']); + $verified = HTTPSig::verify('',$record['channel']['channel_pubkey']); if(! ($verified && $verified['header_signed'] && $verified['header_valid'])) { $record = null; } |