security fixes related to directory access and sites that are off the grid

This commit is contained in:
friendica
2013-01-22 02:56:32 -08:00
parent bda4ca4c0d
commit beb3301d43
5 changed files with 27 additions and 10 deletions

View File

@@ -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;