Description
Describe the bug
When you try to use the "PDF Version" link to create a PDF of the FAQ article, it works except for images that have spaces in the file names.
To Reproduce
Create an image (png) and save it with a space in the name. Like "This image name has spaces.png". Then create an FAQ article and add that image to the article. The article looks good and it publishes fine. The users can see the article with the image as intended. But if you click the "PDF Version" link, the PDF will not contain the image. If you save the same image as "This_image_name_has_no_spaces.png" and add it just like before. The PDF will include the image.
Expected behavior
The PDF creation should account for images that may have spaces in them and take the appropriate action so those images are included in the PDF just like all other images.
phpMyFAQ (please complete the following information):
- phpMyFAQ version: 3.1.11
- PHP version: 8.0.22
- Database: MariaDB 10.3.32 (MySQL)
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Chrome
- Version: Version 110.0.5481.178 (Official Build) (64-bit)