Update src/Security/Member.php

Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
This commit is contained in:
Thomas Portelange 2021-03-22 09:02:13 +01:00 committed by GitHub
parent 0586c55e62
commit 19052e6924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,7 +872,7 @@ class Member extends DataObject
public function onBeforeWrite()
{
// Prevent spaces in emails
if($this->Email) {
if ($this->Email) {
$this->Email = trim($this->Email);
}