diff options
author | friendica <info@friendica.com> | 2013-01-22 02:56:32 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-22 02:56:32 -0800 |
commit | beb3301d43c0d532bd6984ee745074479babdabb (patch) | |
tree | e1fb9a4ad9ef56456f6e06049053f2234ce79c63 /mod/search.php | |
parent | bda4ca4c0d9f247675f4c241ecb0d402bb380d8f (diff) | |
download | volse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.tar.gz volse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.tar.bz2 volse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.zip |
security fixes related to directory access and sites that are off the grid
Diffstat (limited to 'mod/search.php')
-rw-r--r-- | mod/search.php | 5 |
1 files changed, 5 insertions, 0 deletions
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; |