Browse Source

Update user_edit.php (#4815)

agree 5 năm trước cách đây
mục cha
commit
0c001b7402
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      core/users/user_edit.php

+ 3 - 3
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"];