mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Added Santize for Email function
This commit is contained in:
@@ -641,3 +641,10 @@ function sanitizeInput($input) {
|
|||||||
// Return sanitized input
|
// Return sanitized input
|
||||||
return $input;
|
return $input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sanitizeForEmail($data) {
|
||||||
|
$sanitized = htmlspecialchars($data);
|
||||||
|
$sanitized = strip_tags($sanitized);
|
||||||
|
$sanitized = trim($sanitized);
|
||||||
|
return $sanitized;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user