diff options
author | Mario <mario@mariovavti.com> | 2020-12-12 21:39:38 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-12 22:41:38 +0100 |
commit | 634ace552d40f9f287a6419dd6fe5b19d3f390ca (patch) | |
tree | 6f28c1a243f186af7c7a6b90ea5afc1b65c515ac /Zotlabs/Module/Dav.php | |
parent | 751a1ba969b4a48b40d42022ed342db7e4e00c03 (diff) | |
download | volse-hubzilla-634ace552d40f9f287a6419dd6fe5b19d3f390ca.tar.gz volse-hubzilla-634ace552d40f9f287a6419dd6fe5b19d3f390ca.tar.bz2 volse-hubzilla-634ace552d40f9f287a6419dd6fe5b19d3f390ca.zip |
try to prevent hubloc confusion in some places
(cherry picked from commit 61cfeb5bdb749319357912d958cd13304b895bce)
Diffstat (limited to 'Zotlabs/Module/Dav.php')
-rw-r--r-- | Zotlabs/Module/Dav.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Dav.php b/Zotlabs/Module/Dav.php index adab25e45..11950dda0 100644 --- a/Zotlabs/Module/Dav.php +++ b/Zotlabs/Module/Dav.php @@ -51,11 +51,12 @@ class Dav extends \Zotlabs\Web\Controller { if($sigblock) { $keyId = str_replace('acct:','',$sigblock['keyId']); if($keyId) { - $r = q("select * from hubloc where hubloc_addr = '%s' limit 1", + $r = q("select * from hubloc where hubloc_addr = '%s'", dbesc($keyId) ); if($r) { - $c = channelx_by_hash($r[0]['hubloc_hash']); + $r = Libzot::zot_record_preferred($r); + $c = channelx_by_hash($r['hubloc_hash']); if($c) { $a = q("select * from account where account_id = %d limit 1", intval($c['channel_account_id']) |