diff options
author | Louise Crow <louise.crow@gmail.com> | 2011-02-23 17:00:00 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2011-02-23 17:00:00 +0000 |
commit | e74bdfc96a1c1b8664e22db22baaf79c0ddbf481 (patch) | |
tree | d28d0c23c8e3da357141b81c1b3db55a2d02ea0e | |
parent | 10e8849bd84ba729b286fb47d38a22a37712e5ba (diff) |
Strip any filename coming back from tmail
-rw-r--r-- | lib/tmail_extensions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tmail_extensions.rb b/lib/tmail_extensions.rb index 0efb9e622..c0ed1033b 100644 --- a/lib/tmail_extensions.rb +++ b/lib/tmail_extensions.rb @@ -21,6 +21,8 @@ module TMail part['content-location'].body) || part.sub_header("content-type", "name") || part.sub_header("content-disposition", "filename") + file_name = file_name.strip if file_name + file_name end # Monkeypatch! Return the name part of from address, or nil if there isn't one |