aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirfind.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-19 21:53:27 -0700
committerfriendica <info@friendica.com>2012-05-19 21:53:27 -0700
commitf16a1199408d167bbc7c52dc408ef02b36808317 (patch)
tree3eefeaf641e91416fa7b43b9a36b829f28ff1983 /mod/dirfind.php
parentc6104fb856cfe282cd56a29d4007903382f960e0 (diff)
downloadvolse-hubzilla-f16a1199408d167bbc7c52dc408ef02b36808317.tar.gz
volse-hubzilla-f16a1199408d167bbc7c52dc408ef02b36808317.tar.bz2
volse-hubzilla-f16a1199408d167bbc7c52dc408ef02b36808317.zip
search with leading @ performs directory search (# for tag search), nothing for text search
Diffstat (limited to 'mod/dirfind.php')
-rw-r--r--mod/dirfind.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/dirfind.php b/mod/dirfind.php
index 34c54dd91..5c5d0e933 100644
--- a/mod/dirfind.php
+++ b/mod/dirfind.php
@@ -17,6 +17,9 @@ function dirfind_init(&$a) {
function dirfind_content(&$a) {
$search = notags(trim($_REQUEST['search']));
+
+ if(strpos($search,'@') === 0)
+ $search = substr($search,1);
$o = '';