Don't send blank attachment filename

This commit is contained in:
Joshua Peek
2011-09-28 10:48:55 -05:00
parent 6e03f954bc
commit 6a2d84d422

View File

@@ -68,6 +68,8 @@ module Linguist
def disposition
if text? || image?
'inline'
elsif name.nil?
"attachment"
else
"attachment; filename=#{EscapeUtils.escape_url(pathname.basename)}"
end