News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

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