aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/HTTPSig.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-12 11:25:24 +0000
committerMario <mario@mariovavti.com>2021-10-12 11:25:24 +0000
commite455fae334c4b5f8d5a563e099add1482749c92f (patch)
tree87a3e2224a4d03b30c97f716a2627f28547c5149 /Zotlabs/Web/HTTPSig.php
parent29f3dc2fa351746f50b87cf7b147ab5055b79fa2 (diff)
downloadvolse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.tar.gz
volse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.tar.bz2
volse-hubzilla-e455fae334c4b5f8d5a563e099add1482749c92f.zip
httpsig: add parentheses
Diffstat (limited to 'Zotlabs/Web/HTTPSig.php')
-rw-r--r--Zotlabs/Web/HTTPSig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php
index 5aa1e1913..ad10fa182 100644
--- a/Zotlabs/Web/HTTPSig.php
+++ b/Zotlabs/Web/HTTPSig.php
@@ -323,7 +323,7 @@ class HTTPSig {
static function get_webfinger_key($id, $force = false) {
if (!$force) {
- $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s' and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
+ $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where (hubloc_addr = '%s' or hubloc_id_url = '%s') and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
dbesc(str_replace('acct:', '', $id)),
dbesc($id)
);
@@ -370,7 +370,7 @@ class HTTPSig {
static function get_zotfinger_key($id, $force = false) {
if (!$force) {
- $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s' and hubloc_network = 'zot6' order by hubloc_id desc",
+ $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where (hubloc_addr = '%s' or hubloc_id_url = '%s') and hubloc_network = 'zot6' order by hubloc_id desc",
dbesc(str_replace('acct:', '', $id)),
dbesc($id)
);