]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Catch next-to-last bad extension 1852/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Mon, 2 Oct 2017 11:44:31 +0000 (14:44 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Mon, 2 Oct 2017 16:29:10 +0000 (19:29 +0300)
commitd3379678a72189dce8a8de5e62d7ebbfb9fc824b
tree808dba886904f303a9285ee02d940b090d013fea
parenta2342f217d549f06ceeabcf260ead8e9f88d6f7e
[Feature] Catch next-to-last bad extension

e.g. .scr.xz

This technique is commonly used by spammers as xz and bzip2 strip out extension on decompression.
Also it catches xz and bzip2 compressed files with faked extensions like .scr.gz .scr.lzh .scr.uue.
src/plugins/lua/mime_types.lua