osTicket/osTicket-1.7 — pull request #668 by greezybacon (2013-08-14 18:59:07+00:00)
Title: Fix incorrect file attachment if filetype is rejected

If an attachment is submitted via the API and the filetype is rejected, the file would be attached anyway. However, if the file was encoded base64, the content would not be decoded.