When I download files that have been attached to tickets, the contents are being prefixed with a newline character. For example, if I download a png image file it will say that it is corrupt and I cannot view it when trying to open in MS Paint, but if I open the png file in Notepad++ and remove the newline character at the top and save the file I can then open it like normal. This happens to all file types, but MS Word and Adobe Reader can still process the files with the extra newline character. It seems like you'll only notice the problem with images.
I have looked through the attachment.php and changed around a few things but nothing seems to work. It simply sets the headers and calls the readfile function so it should work find. I don't see anything that would be screwing with the file data.
Anyone know how to fix that?