aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/search/start.php3
1 files changed, 3 insertions, 0 deletions
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.