Merge branch 'trim-mail' into 'develop'

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

See merge request framasoft/framadate!272
This commit is contained in:
Thomas Citharel 2018-04-03 09:36:25 +02:00
commit 3c9b8d3708

View File

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