]> granicus.if.org Git - mutt/commit
When guessing an attachment type, don't allow text/plain if there is a null character...
authorKevin McCarthy <kevin@8t8.us>
Fri, 21 Jul 2017 00:30:05 +0000 (17:30 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 21 Jul 2017 00:30:05 +0000 (17:30 -0700)
commit2aa03f79892aa193f3e8bbb2037fe666a8122071
tree386ece460b7903b22be764fc5924014d3201e09d
parent6d3dd4bf85469e5a585ed4a039b3b6d4472e3502
When guessing an attachment type, don't allow text/plain if there is a null character. (see #2933)

Type text/plain should not contain any null characters.  Slightly
improve the type guesser by forcing an attachment with any null
characters to be application/octet-stream.

Note the type guesser could use much more improvement, but this is an
easy and obvious fix.
mutt.h
sendlib.c