jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Makulia on 04.12.2014 08:08:15

Title: Bug fix for File names trashing when using mass download feature [Fixed 3.2.18]
Post by: Makulia on 04.12.2014 08:08:15
Hello, Arno!

I have found next nasty bug in the latest 17 build! ;)

Problem

File names are trashed when downloading several files as zip. I am using layout with check-boxes. Seems to me another encoding issue. If I am downloading files one by one, them file names not changing.
Can you, please, point me to the place in code, where zipping action take place?

Solution

Zip archive stores file names in CP866 encoding but our file names are in UTF-8 encoding. To fix this bug we must convert filenames from UTF-8 back to CP866.

line 1852 /components/com_jdownloads/helpers/jdownloadshelper.php


$zip->addFile($file, iconv('UTF-8', 'CP866', $only_filename));


Please, release patch ASAP. Thank you!

[gelöscht durch Administrator]
Title: Re: Bug fix for File names trashing when using mass download feature
Post by: Arno on 04.12.2014 11:20:13
Hi Makulia,
many thanks for your bugfix. I will publish it later today.  ;)