From 66fac692e5662823c79ea008378f90efd2f2401e Mon Sep 17 00:00:00 2001 From: ericras <ericrasmussen1@gmail.com> Date: Tue, 28 May 2013 14:40:19 -0500 Subject: [PATCH] Really poor spam prevention But it at least stops the current spam --- www/landscape/outdoorevents/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/landscape/outdoorevents/index.php b/www/landscape/outdoorevents/index.php index a75c1fb..aa96077 100644 --- a/www/landscape/outdoorevents/index.php +++ b/www/landscape/outdoorevents/index.php @@ -14,7 +14,9 @@ function escape_csv_value($value) { } } -if (!empty($_POST)) { +if (!empty($_POST) + && $_POST['recycle_number'] < 1000 //very basic spam prevention + ) { $error_msg = ''; if (in_array($_POST['location'], array("lied","union","sheldon","wick"))) { -- GitLab