mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update src/Security/Member.php
Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
This commit is contained in:
parent
19052e6924
commit
22b2d58b5a
@ -871,7 +871,7 @@ class Member extends DataObject
|
||||
*/
|
||||
public function onBeforeWrite()
|
||||
{
|
||||
// Prevent spaces in emails
|
||||
// Remove any line-break or space characters accidentally added during a copy-paste operation
|
||||
if ($this->Email) {
|
||||
$this->Email = trim($this->Email);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user