Today I found the time to fix a problem in testopia – the mozilla test extention for Bugzilla.
The problem was, that we where unable to attach files to a test case in the testopia extention. After some research I found out, that the tr_attachment.cgi module uses the Testopia:Attachment perl module to do the database stuff.
I have changed the too simple database insert statement to a more secure prepared statement which uses the type BLOB for the contents and it works perfekt.
To get the fixed file you can download it from the original bug 576524.