Hi
we're using v5.1.1 and found the following bug:
I uploaded a file called similar to "abc-1.1.1-win32.zip".
When trying to download that file, the name was changed to "abc-1.1.win32.zip".
I looked into "download.php" and found this on line 679:
Code:
$newfilename = preg_replace('/[0-9]+-/','',$file['url']);
This line intends to remove the number-hyphen-combination that is added to the filenames during upload.
Unfortunately, this line also deletes number-hyphen-combinations within the actual filename.
Using the following fixes the bug:
Code:
$newfilename = preg_replace('/^[0-9]+-/','',$file['url']);
Greets,
Cobinja