Skip to content

Commit a450d22

Browse files
authored
[I] Trim user/webuser email address
Sometimes pasting in a new account email address has spaces. remove these so it does not error.
1 parent b9c3e47 commit a450d22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manager/processors/save_web_user.processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$passwordgenmethod = $input['passwordgenmethod'];
2828
$passwordnotifymethod = $input['passwordnotifymethod'];
2929
$specifiedpassword = $input['specifiedpassword'];
30-
$email = $input['email'];
30+
$email = trim($input['email']);
3131
$esc_email = $modx->db->escape($email);
3232
$oldemail = $input['oldemail'];
3333
$phone = $input['phone'];

0 commit comments

Comments
 (0)