Fix evaluation of banning_reason_short when filetype is not a leaf
check_for_banned_names
issues a wrong banning_short_reason
if the banned file/filetype is not a leaf. For instance, a permitted index.html
file within a banned archive.zip
will be banned with the short_reason .asc,index.html
instead of application/octet-stream,.zip,archive.zip
.