Skip to content
Snippets Groups Projects
Commit f5133ab3 authored by Thomas Neumann's avatar Thomas Neumann
Browse files

Die if invalid error message

parent f2293aee
No related branches found
No related tags found
1 merge request!44Logging errors
...@@ -24,7 +24,8 @@ $valid_errors = array('Failed To Load', 'Recaptcha'); ...@@ -24,7 +24,8 @@ $valid_errors = array('Failed To Load', 'Recaptcha');
if (isset($_POST['error']) && !empty($_POST['error']) && in_array($_POST['error'], $valid_errors)) { if (isset($_POST['error']) && !empty($_POST['error']) && in_array($_POST['error'], $valid_errors)) {
$error = $_POST['error']; $error = $_POST['error'];
} else { } else {
$error = "undefined"; // If we do not a valid error message we will die
die();
} }
// Writes to file // Writes to file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment