issues 237, add trim function in order to delete the blank characters in mail input

This commit is contained in:
Anael 2018-04-01 23:13:15 +02:00 committed by Thomas Citharel
parent 72de7bff1c
commit 9da92fd775
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -65,6 +65,7 @@ class InputService {
}
public function filterMail($mail) {
$mail = trim($mail);
return filter_var($mail, FILTER_VALIDATE_EMAIL);
}