]> source.dussan.org Git - rspamd.git/commit
[Enhancement] Exclude false positives of MIME_DOUBLE_BAD_EXTENSION 4920/head
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 11 Apr 2024 16:17:08 +0000 (19:17 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2024 16:17:08 +0000 (19:17 +0300)
commit7d14e4af43ee1435b47a5d38b699b24bf598d4bf
tree8d208b815e3fdd8e5534ab1f86d9b64b6c46f072
parent6b23b885eb56be6d3f6717a7c5e39f5da81c2d6d
[Enhancement] Exclude false positives of MIME_DOUBLE_BAD_EXTENSION

If we detected extension of the file and this extension is equal to the real extension then we should not pass second extension to check function as it will trigger false positive for MIME_DOUBLE_BAD_EXTENSION.
src/plugins/lua/mime_types.lua