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

fixed typo and added http status code

parent f5133ab3
No related branches found
No related tags found
1 merge request!44Logging errors
......@@ -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 {
// If we do not a valid error message we will die
// If we do not have a valid error message we will die
http_response_code(400);
die();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment