Skip to content

Commit 1f3b929

Browse files
authored
Merge pull request #713 from bossloper/patch-1
[I] Trim user/webuser email address
2 parents b9c3e47 + 32d2165 commit 1f3b929

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manager/processors/save_user.processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$passwordgenmethod = $input['passwordgenmethod'];
2323
$passwordnotifymethod = $input['passwordnotifymethod'];
2424
$specifiedpassword = $input['specifiedpassword'];
25-
$email = $input['email'];
25+
$email = trim($input['email']);
2626
$oldemail = $input['oldemail'];
2727
$phone = $input['phone'];
2828
$mobilephone = $input['mobilephone'];

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)