From 2460ee3262d2ecd5e6bf0ecd5c9aca859337138c Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 16 Mar 2019 04:34:34 -0400 Subject: controllers/contact: Return spam 403 response code on single line; --- controllers/contact.controller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'controllers') diff --git a/controllers/contact.controller.php b/controllers/contact.controller.php index 36a0c73..0f988f3 100644 --- a/controllers/contact.controller.php +++ b/controllers/contact.controller.php @@ -24,9 +24,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } if ((bool) $spam == true) { - http_response_code(403); error_log('Contact Form Spam: Error 403'); - return; + return http_response_code(403); } if ($validEmail === false ) { -- cgit v1.2.3