From beb3301d43c0d532bd6984ee745074479babdabb Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 22 Jan 2013 02:56:32 -0800 Subject: security fixes related to directory access and sites that are off the grid --- mod/search.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/search.php') diff --git a/mod/search.php b/mod/search.php index a9f2df069..7a0f4205d 100644 --- a/mod/search.php +++ b/mod/search.php @@ -117,6 +117,11 @@ function search_content(&$a) { goaway(z_root() . '/directory' . '?f=1&search=' . $search); } + // look for a naked webbie + if(strpos($search,'@') !== false) { + goaway(z_root() . '/directory' . '?f=1&search=' . $search); + } + if(! $search) return $o; -- cgit v1.2.3