mirror of https://github.com/itflow-org/itflow
Added Santize for Email function
This commit is contained in:
parent
4b5310e4dd
commit
84b32ec807
|
|
@ -641,3 +641,10 @@ function sanitizeInput($input) {
|
|||
// Return sanitized input
|
||||
return $input;
|
||||
}
|
||||
|
||||
function sanitizeForEmail($data) {
|
||||
$sanitized = htmlspecialchars($data);
|
||||
$sanitized = strip_tags($sanitized);
|
||||
$sanitized = trim($sanitized);
|
||||
return $sanitized;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue