aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Search.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-07-22 12:08:47 +0200
committergit-marijus <mario@mariovavti.com>2017-07-22 12:08:47 +0200
commit363d8723260bfefb85611935fe60797f34e6db6a (patch)
treee69e655cb06ecd182c6aca6ec358821dd0dec2af /Zotlabs/Module/Search.php
parentf4a4d70149b74a73faf5e777350d76946eeefe93 (diff)
parent992f8272d38b9ee73cc9facbe473665713f6ff2d (diff)
downloadvolse-hubzilla-363d8723260bfefb85611935fe60797f34e6db6a.tar.gz
volse-hubzilla-363d8723260bfefb85611935fe60797f34e6db6a.tar.bz2
volse-hubzilla-363d8723260bfefb85611935fe60797f34e6db6a.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Search.php')
-rw-r--r--Zotlabs/Module/Search.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php
index f95ae5e68..e1d35b879 100644
--- a/Zotlabs/Module/Search.php
+++ b/Zotlabs/Module/Search.php
@@ -81,11 +81,12 @@ class Search extends \Zotlabs\Web\Controller {
return $o;
if($tag) {
- $sql_extra = sprintf(" AND item.id IN (select oid from term where otype = %d and ttype in ( %d , %d) and term = '%s') ",
+ $wildtag = str_replace('*','%',$search);
+ $sql_extra = sprintf(" AND item.id IN (select oid from term where otype = %d and ttype in ( %d , %d) and term like '%s') ",
intval(TERM_OBJ_POST),
intval(TERM_HASHTAG),
intval(TERM_COMMUNITYTAG),
- dbesc(protect_sprintf($search))
+ dbesc(protect_sprintf($wildtag))
);
}
else {