#64224GIFBUILDER with FAL and UTF-8 filesystem
Description
given is a file “wärme.png“
given is the file is used in a content element via a file refernce (FAL)
given is a TypoScript setup to render the image via a GIFBUILDER Object
then I see a broken image rendered as the filename is not processed correctly
ContentObjectRender->getImgResource() does return ‘$processedFileObject->getPublicUrl()’ inside the imgResource of the processdFile which is rawurlencoded().
This patch/change cures the problem by adding an extra rawurldecod() inside the GifBuilder. Does not feel like the proper solution and I will see if it breaks anywhere else for some time.
iff --git a/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php b/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
index 9d13e6c..306b676 100644
--- a/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
+++ b/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
@@ -206,7 +206,7 @@ class GifBuilder extends \TYPO3\CMS\Core\Imaging\GraphicalFunctions {
$fileInfo = $this->getResource($conf['file'], $conf['file.']);
if ($fileInfo) {
$this->combinedFileNames[] = preg_replace('/\\.[[:alnum:]]+$/', '', basename($fileInfo[3]));
- $this->setup[$theKey . '.']['file'] = $fileInfo[3];
+ $this->setup[$theKey . '.']['file'] = rawurldecode($fileInfo[3]);
$this->setup[$theKey . '.']['BBOX'] = $fileInfo;
$this->objBB[$theKey] = $fileInfo;
if ($conf['mask']) {