I disabled each system plugin one by one and testing it. No change.
I even disabled ALL plugins (this breaks the site) and the download is still corrupted.
So even without any plugin enabled, the download still gets corrupted because of this extra empty line at the beginning of the file.
When I open the order in the backend, and I click on the downloadlink, the file gets downloaded correct!
Link in Mail:
http://www.trancewerk-test.nl/index.php?option=com_hikashop&ctrl=order&task=download&file_id=276&order_id=432
Link in Backend:
http://www.trancewerk-test.nl/administrator/index.php?option=com_hikashop&ctrl=order&task=download&file_id=276&order_id=432
Could it have anything to do with permissions?
Maurice
Edit: when I order with my admin account and download via the front-end, I also receive the corrupted file, so I guess it has nothing to do with permissions. Maybe the line-feed handling for front-end downloads is handled wrong somewhere?