From 9da92fd775cb4592522bbbea7cf22e0281d74969 Mon Sep 17 00:00:00 2001 From: Anael Date: Sun, 1 Apr 2018 23:13:15 +0200 Subject: [PATCH] issues 237, add trim function in order to delete the blank characters in mail input --- app/classes/Framadate/Services/InputService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/classes/Framadate/Services/InputService.php b/app/classes/Framadate/Services/InputService.php index 2c5e1da..3b11e7e 100644 --- a/app/classes/Framadate/Services/InputService.php +++ b/app/classes/Framadate/Services/InputService.php @@ -65,6 +65,7 @@ class InputService { } public function filterMail($mail) { + $mail = trim($mail); return filter_var($mail, FILTER_VALIDATE_EMAIL); }