Ticket/12171 Attachments from soft-deleted posts are still downloadable

http://tracker.phpbb.com/browse/PHPBB3-12171
http://tracker.phpbb.com/browse/PHPBB3-12172