Skip to content

Limit image file types and avoid encoding sensitive data in file path#354

Open
PGijsbers wants to merge 4 commits intomasterfrom
limit-image-file-types
Open

Limit image file types and avoid encoding sensitive data in file path#354
PGijsbers wants to merge 4 commits intomasterfrom
limit-image-file-types

Conversation

@PGijsbers
Copy link
Contributor

@PGijsbers PGijsbers commented Aug 23, 2025

  • For profile pictures, allow only jpeg since that is the only format that actually works when retrieving the image.
  • Make sure that the path under which it is stored on the server does not contain sensitive data. In this case, the user name might have contained the e-mail of the user.

Warning

I have not been able to test these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant