Skip to content

Fix for wrong mime type mismatch detection - #96

Merged
lisaSW merged 4 commits into
mime-type-mismatch-false-positivesfrom
467-mime-false-positives-fix
Sep 25, 2026
Merged

lisaSW merged 4 commits into
mime-type-mismatch-false-positivesfrom
467-mime-false-positives-fix

Conversation

@pawelfloryan

Copy link
Copy Markdown
Contributor

Since when dealing with multiple extensions related to a single mime type there are multiple rows for each extension, the query will flag a mismatch if the extension was different from the first extension found for the mime type in the valid_mime_types table, even though the same extension for that mime type could be in some other row.

This approach doesn't change the db schema and instead works on a query which separates aggregated extensions between the mime types.

@lisaSW
lisaSW changed the base branch from develop to mime-type-mismatch-false-positives September 25, 2026 20:18
@lisaSW
lisaSW merged commit c03d601 into mime-type-mismatch-false-positives Sep 25, 2026
6 checks passed
@lisaSW
lisaSW deleted the 467-mime-false-positives-fix branch September 25, 2026 20:19
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.

2 participants