From 8ff92fad47236b6a2403d4c6e61c6b6eaa11d626 Mon Sep 17 00:00:00 2001 From: hellekin Date: Mon, 12 Aug 2013 13:26:30 -0300 Subject: Prevent search spam --- mod/search/start.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/search/start.php b/mod/search/start.php index 8a112a3a3..75365dcda 100644 --- a/mod/search/start.php +++ b/mod/search/start.php @@ -60,6 +60,9 @@ function search_init() { */ function search_page_handler($page) { + // Prevent search spam by requiring login to search + gatekeeper(); + // if there is no q set, we're being called from a legacy installation // it expects a search by tags. // actually it doesn't, but maybe it should. -- cgit v1.2.3