aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-29 05:45:05 +0000
committerMario <mario@mariovavti.com>2021-06-29 05:45:05 +0000
commit5a474f94e05e16f48a5683e991112455c38fc6cf (patch)
treedbe678a73cf2506af1f206079b7aabc5582a9740 /include
parentd322feeb54d087897e642dbd647a429a9b4beeff (diff)
downloadvolse-hubzilla-5a474f94e05e16f48a5683e991112455c38fc6cf.tar.gz
volse-hubzilla-5a474f94e05e16f48a5683e991112455c38fc6cf.tar.bz2
volse-hubzilla-5a474f94e05e16f48a5683e991112455c38fc6cf.zip
fix query logic
Diffstat (limited to 'include')
-rw-r--r--include/text.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index c0f8c0fb1..9869bfbfa 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2878,14 +2878,13 @@ function handle_tag(&$body, &$str_tags, $profile_uid, $tag, $in_network = true)
$newname = substr($name,1);
$newname = substr($newname,0,-1);
- $r = q("SELECT * FROM xchan WHERE xchan_addr = '%s' OR xchan_url = '%s' AND xchan_deleted = 0",
+ $r = q("SELECT * FROM xchan WHERE ( xchan_addr = '%s' OR xchan_url = '%s' ) AND xchan_deleted = 0",
dbesc($newname),
dbesc($newname)
);
}
if(! $r) {
-
// look for matching names in the address book
// Double quote the entire mentioned term to include special characters