Users not added in user_infos table #847

Closed
opened 2026-10-05 00:20:36 +02:00 by adam · 3 comments
Owner

If you use plugin AddUsersNotes and you set the "guest" usernote with an single quote, you won't be able to add any new user correctly. Indeed, in function create_user_infos we simply copy fields from user "guest" to the new user, without protecting string values.

If you use plugin AddUsersNotes and you set the "guest" usernote with an single quote, you won't be able to add any new user correctly. Indeed, in function `create_user_infos` we simply copy fields from user "guest" to the new user, without protecting string values. <!-- github-sync-id:397846990 -->
adam closed this issue 2026-10-05 00:20:36 +02:00
Author
Owner

Default user ? no ?

Default user ? no ? <!-- github-comment-id:453241440 -->
Author
Owner

Yes, maybe the default user, you're right. It won't really change the fix to apply, because in function create_user_infos we simply get the default user_infos values from function get_default_user_info

Yes, maybe the default user, you're right. It won't really change the fix to apply, because in function `create_user_infos` we simply get the default user_infos values from function `get_default_user_info` <!-- github-comment-id:453447400 -->
Author
Owner

I'm not sure this is related but there are 5 users with a different user_list issue where the users are in the database but can't be displayed on the admin user_list page:
https://github.com/Piwigo/Piwigo/issues/882

I'm not sure this is related but there are 5 users with a different user_list issue where the users are *in* the database but can't be displayed on the admin user_list page: https://github.com/Piwigo/Piwigo/issues/882 <!-- github-comment-id:453981421 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#847