Skip to content

Commit a1a1e4d

Browse files
committed
Security: Ensure that is the current user whose data is modified
1 parent 1121aec commit a1a1e4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/auth/profile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ function show_image(image,width,height) {
449449

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

0 commit comments

Comments
 (0)