Improve security in attachments view
Merge pull request #19 from gisce/imp_attachments

Improve security in attachments view