Skip to content

Commit b93c35f

Browse files
author
Till Brehm
committed
Enforce email addresses to be lower case when adding an email address via remote API.
1 parent 1dc4398 commit b93c35f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interface/lib/classes/remote.d/mail.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ public function mail_user_add($session_id, $client_id, $params){
205205
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
206206
return false;
207207
}
208+
209+
// Email addresses must always be lower case
210+
$params['email'] = strtolower($params['email']);
208211

209212
//* Check if mail domain exists
210213
$email_parts = explode('@', $params['email']);

0 commit comments

Comments
 (0)