From f940b404f841104df49eaceca37fc9cca6b80504 Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 15 Oct 2014 09:37:24 +0200 Subject: [PATCH] user add/edit case sensitivity fix --- webui/controller/user/add.php | 2 +- webui/controller/user/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/controller/user/add.php b/webui/controller/user/add.php index 5da8c612..7bc8d63e 100644 --- a/webui/controller/user/add.php +++ b/webui/controller/user/add.php @@ -107,7 +107,7 @@ private function validate() { else { $emails = explode("\n", $this->request->post['email']); foreach ($emails as $email) { - $email = rtrim($email); + $email = strtolower(rtrim($email)); if($email == '') { continue; } $ret = checkemail($email, $this->domains); diff --git a/webui/controller/user/edit.php b/webui/controller/user/edit.php index 1544a913..e66b5aa7 100644 --- a/webui/controller/user/edit.php +++ b/webui/controller/user/edit.php @@ -113,7 +113,7 @@ class ControllerUserEdit extends Controller { } else { $emails = explode("\n", $this->request->post['email']); foreach ($emails as $email) { - $email = rtrim($email); + $email = strtolower(rtrim($email)); if($email == '') { continue; }