ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.71k stars 236 forks source link

Escape inline attachment names the same way they are stored in the attachments directory #125

Closed daniel-rikowski closed 8 years ago

daniel-rikowski commented 8 years ago

Before this an inline attachment like sub/dir/pic.jpg would be stored as attachments/sub_dir_pic.jpg but the HTML part still linked to attachments/sub/dir/pic.jpg which subsequently led to broken images. Now the correct file name is used.

nashby commented 8 years ago

@daniel-rikowski good catch, thanks!