Skip to content

Commit

Permalink
Security: Ensure that is the current user whose data is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 15, 2024
1 parent 1121aec commit a1a1e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/auth/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ function show_image(image,width,height) {

$wrong_current_password = false;
$user_data = $form->getSubmitValues(1);
$user_data['item_id'] = api_get_user_id();
/** @var User $user */
$user = UserManager::getRepository()->find(api_get_user_id());

Expand Down

0 comments on commit a1a1e4d

Please sign in to comment.