Ticket #1461 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

ImageManager does not display thumbnail of files with filenames containing special characters

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords: ImageManager thumb
Cc:

Description

One of my customers correctly uploaded a file with the filename '1%club.jpg' using the ImageManager plugin. A thumbnail was also correctly created in the .thumbs folder.

The thumbnail, however, was NOT correctly displayed.

As far as I can see, a PHP rawurlencode function call was missing. After adding that, the thumbnail is correctly displayed...

In trunk/plugins/ImageManager/Classes/ImageManager.php, function getThumbURL($relative) (currently line 327):

Return Files::makeFile($url_path,$thumbnail);

changed to

Return Files::makeFile($url_path,rawurlencode($thumbnail));

Regards, Jeroen Vader

Change History

Changed 4 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

Committed changeset:1211

Note: See TracTickets for help on using tickets.