fancybox
fancybox copied to clipboard
Thumbnails display bug
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:
- Set up a fancybox group of images with some having a "(" or ")" in the file name.
- Click on any fancybox image in that group.
- Click on the thumbnails icon at the top of the screen.
- 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?
It also happens when file contains spaces in name. I am also looking for a solution.
Simply escape your urls, for example, for PHP your could use https://www.php.net/manual/en/function.urlencode.php