Prevent xss attacks on ldc-message, clear inputs

This commit is contained in:
Jérémy Munsch 2024-06-18 10:22:59 +02:00
parent 9ef74de4c9
commit c081bca2ca
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -232,6 +232,11 @@ function ContactAjx()
$content .= ucfirst($key) . " : " . $item . "\n\r";
}
}
// ! Freaking sanitize inputs
$firstname = strip_tags($firstname);
$lastname = strip_tags($lastname);
$email = strip_tags($email);
$content = strip_tags($content);
$ref = date('ymd') . '-' . generateRandomString(4);