aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2013-08-12 13:26:30 -0300
committerhellekin <hellekin@cepheide.org>2013-08-12 13:26:30 -0300
commit8ff92fad47236b6a2403d4c6e61c6b6eaa11d626 (patch)
tree4111913572e00336330e05bc73d717a434595baa /mod
parenta2f79f95f87572fefdb8905a6b5ce3987333184d (diff)
downloadelgg-8ff92fad47236b6a2403d4c6e61c6b6eaa11d626.tar.gz
elgg-8ff92fad47236b6a2403d4c6e61c6b6eaa11d626.tar.bz2
Prevent search spam
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.