Skip to content

Change profile to only initialize for existing users - #49

Merged
Potherca merged 1 commit into
mainfrom
fix/initialize-profile
Sep 7, 2026
Merged

Change profile to only initialize for existing users#49
Potherca merged 1 commit into
mainfrom
fix/initialize-profile

Conversation

@Potherca

@Potherca Potherca commented Sep 7, 2026

Copy link
Copy Markdown
Member

Currently, when any id-{uuid} URL is visited, a directory (with default files) is created in data/profiles .

This MR adds a check to only do so if a user actually exists.

This also prevents the deprecation warning "Automatic conversion of false to array" triggered by lib/ProfileServer.php:139

To prevent enumeration attacks, the response returns a 403 (this is the existing flow, no code change was needed).

@Potherca Potherca added this to the v0.4.2 milestone Sep 7, 2026
@Potherca
Potherca requested review from poef and ylebre September 7, 2026 13:28
@Potherca Potherca self-assigned this Sep 7, 2026
@Potherca
Potherca merged commit ae59e0c into main Sep 7, 2026
31 of 32 checks passed
@Potherca
Potherca deleted the fix/initialize-profile branch September 7, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants