X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirfind.php;h=5c5d0e933ac5856444811e4479409f4cdcbbd93e;hb=4832bc74f55e7d3e6f66d281f5de3a071fe1e071;hp=75b1c4976740f1da1e45e426569b4ff48b2516d3;hpb=58a9c652de09817b9c5d5132de51b8690ed32d53;p=friendica.git diff --git a/mod/dirfind.php b/mod/dirfind.php old mode 100755 new mode 100644 index 75b1c49767..5c5d0e933a --- 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 = ''; @@ -46,7 +49,7 @@ function dirfind_content(&$a) { foreach($j->results as $jj) { $o .= replace_macros($tpl,array( - '$url' => $jj->url, + '$url' => zrl($jj->url), '$name' => $jj->name, '$photo' => $jj->photo, '$tags' => $jj->tags