Sourceforge provides links that have URLs looking like zip files, etc, but are treated as an instruction to redirect to the mirrors page where you actually choose the mirror you want. Perhaps other sites do the same. Versions of this hack up to 1.25 fail to spot this and give you a download which is actually the html code for the redirect.
To fix this, find the following code in local_links.php (line 1896 in version 1.25)
Code:
$dfname = basename($urlInfo['path']);
$type = substr(strrchr($dfname, "."), 1);
$mimetype = get_mimetype($type);
if (!is_array($mimetype)) {
Replace
Code:
if (!is_array($mimetype)) {
with
Code:
if (!is_array($mimetype) or $urlInfo['query'] != "") {
This should fix the problem. Please advise.