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
No related merge requests found
Pipeline #60032 canceled
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment