From db08dedbefd47491e60ddf6d1aedc7bc4fde6f01 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Thu, 31 Oct 2019 23:52:50 -0400 Subject: [PATCH] Update user_edit.php (#4815) --- core/users/user_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 8452107092..ac7955eacf 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -118,9 +118,9 @@ $username_old = $_POST["username_old"]; } $domain_uuid = $_POST["domain_uuid"]; - $username = $_POST["username"]; - $password = $_POST["password"]; - $password_confirm = $_POST["password_confirm"]; + $username = trim($_POST["username"]); + $password = trim($_POST["password"]); + $password_confirm = trim($_POST["password_confirm"]); $user_email = $_POST["user_email"]; $user_status = $_POST["user_status"]; $user_language = $_POST["user_language"];