aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/search.php b/mod/search.php
index d467764b0..635c87b70 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -96,6 +96,12 @@ function search_content(&$a) {
$o .= search($search,'search-box','/search',((local_user()) ? true : false));
+
+ if(strpos($search,'#') === 0) {
+ $tag = true;
+ $search = substr($search,1);
+ }
+
if(! $search)
return $o;