This is just a quick hack to add possibility of adding external files to reports - it used to work in report and Anaconda uses it to attach the whole error log so we need to cover that. Proper fix would be to implement this into the C part of libreport.
Please review, Jirka