From f5133ab39f67de7b7bd734b45c5c6c1d7d16edea Mon Sep 17 00:00:00 2001
From: Thomas Neumann <thomasneumann21800@gmail.com>
Date: Tue, 7 Feb 2023 15:35:14 -0600
Subject: [PATCH] Die if invalid error message

---
 www/failCount.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/failCount.php b/www/failCount.php
index 3294064..0c199be 100644
--- a/www/failCount.php
+++ b/www/failCount.php
@@ -24,7 +24,8 @@ $valid_errors = array('Failed To Load', 'Recaptcha');
 if (isset($_POST['error']) && !empty($_POST['error']) && in_array($_POST['error'], $valid_errors)) {
     $error = $_POST['error'];
 } else {
-    $error = "undefined";
+    // If we do not a valid error message we will die
+    die();
 }
 
 // Writes to file
-- 
GitLab