From 4446f0653b24f756fca3bc4984b580ac506733de Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 20 Oct 2022 06:28:57 +0800 Subject: [PATCH] fix(web/user/edit): sex --- web/app/controllers/user_info_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/user_info_edit.php b/web/app/controllers/user_info_edit.php index c0d0aea..38a663d 100644 --- a/web/app/controllers/user_info_edit.php +++ b/web/app/controllers/user_info_edit.php @@ -128,7 +128,7 @@ EOD); $esc_email = DB::escape($vdata['email']); $esc_qq = DB::escape($vdata['qq']); $esc_github = DB::escape($vdata['github']); - $esc_sex = DB::escape($vdata['sex']); + $esc_sex = DB::escape($_POST['sex']); $esc_motto = DB::escape($vdata['motto']); $esc_codeforces_handle = DB::escape($vdata['codeforces_handle']);