Skip to content

[stable30] fix(mimetypes): drop tar.gz and tar.bz2 and adjust tgz - #51412

Merged
skjnldsv merged 1 commit into
stable30from
backport/51405/stable30
Mar 12, 2025
Merged

[stable30] fix(mimetypes): drop tar.gz and tar.bz2 and adjust tgz#51412
skjnldsv merged 1 commit into
stable30from
backport/51405/stable30

Conversation

@backportbot

Copy link
Copy Markdown

Backport of PR #51405

1. mimetypes with a dot do not work with our mime detector (only checks
last dot).
2. all of those files are tar files compressed as gzip / bzip2 so the
real mimetype of the file is the compression not the tar.
We could at max. set mime to `application/x-tar+gzip`.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@backportbotbackportbotBot added bug 3. to review Waiting for reviews labels Mar 12, 2025
@backportbotbackportbotBot added this to the Nextcloud 30.0.7 milestone Mar 12, 2025
@skjnldsv
skjnldsv merged commit a5c74cf into stable30Mar 12, 2025
@skjnldsv
skjnldsv deleted the backport/51405/stable30 branch March 12, 2025 08:26
@blizzzblizzz mentioned this pull request Mar 12, 2025
13 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@susnux@skjnldsv