News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Bug fix for File names trashing when using mass download feature [Fixed 3.2.18]

Started by Makulia, 04.12.2014 08:08:15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makulia

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]
  •  

Arno

Hi Makulia,
many thanks for your bugfix. I will publish it later today.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •