Skip to content

Commit

Permalink
fix download extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tomclegg committed Aug 5, 2012
1 parent 97afc82 commit eeeb3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/genome_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if (preg_match('/ 0:(\d+):(\S+)$/', $manifest, $regs)) {
$passthru_command = "whget ".escapeshellarg("$locator/**/$regs[2]");
$fsize = $regs[1];
$ext = preg_replace ('/^.*((\.\w{3})?(\.[bg]z2?)?)/', '\1', $regs[2]);
$ext = preg_replace ('/^.*?((\.\w{3})?(\.[bg]z2?)?)$/', '\1', $regs[2]);
}
}
}
Expand Down

0 comments on commit eeeb3a4

Please sign in to comment.