Prevent xss attacks on ldc-message, clear inputs
This commit is contained in:
parent
9ef74de4c9
commit
c081bca2ca
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue