fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

Thumbnails display bug

Open PCZeroNet opened this issue 4 years ago • 2 comments

The display of thumbnails is broken in that it displays a blank grey box for any image who's filename contains a "(" or ")" character.

To Reproduce Steps to reproduce the behavior:

  1. Set up a fancybox group of images with some having a "(" or ")" in the file name.
  2. Click on any fancybox image in that group.
  3. Click on the thumbnails icon at the top of the screen.
  4. Notice thta the series of thumbnails is displayed BUT any of the images named as above are not displayed. Instead a blank grey rectangle place ho;der is displayed for those images.

How do I fix the bug that is causing the "(" and ")" characters to blow up the code?

PCZeroNet avatar Mar 24 '20 01:03 PCZeroNet

It also happens when file contains spaces in name. I am also looking for a solution.

ghost avatar Jun 30 '20 12:06 ghost

Simply escape your urls, for example, for PHP your could use https://www.php.net/manual/en/function.urlencode.php

fancyapps avatar Jun 30 '20 13:06 fancyapps