mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-28 20:10:04 +00:00
issues 237, add trim function in order to delete the blank characters in mail input
This commit is contained in:
parent
72de7bff1c
commit
9da92fd775
1 changed files with 1 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ class InputService {
|
|||
}
|
||||
|
||||
public function filterMail($mail) {
|
||||
$mail = trim($mail);
|
||||
return filter_var($mail, FILTER_VALIDATE_EMAIL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue