Bug #14146
closedThumbnails in Element Browser are only displayed if fileSuffix is lowercase
0%
Description
This bug s only present with "typo3/browse_links.php"
(issue imported from #M65)
Files
Updated by Mathias Schreiber over 20 years ago
Change:
/t3lib/class.t3lib_div.php
Line 645
function inList($in_list,$item) {
#return strstr(','.$in_list.',', ','.$item.',');
return strstr(','.strtolower($in_list).',', ','.strtolower($item).',');
}
Except this behaviour is wanted.
You can fix it by adding JPG to $TYPO3_CONF_VARS["GFX"]["imagefile_ext"] but I think this might be more intuitive to just change the function.
Any drawbacks involved?
Updated by Kasper Skårhøj over 20 years ago
The requirements o fthis function is to do a binary safe in-list comparison. If we change that we will damage TYPO3 in a thousand places.
Make sure the inputs are strtolower()'ed before calling the funciton.
Updated by Mathias Schreiber over 20 years ago
then we would change it in brose_links.php, right?
Updated by Daniel Poetzinger over 20 years ago
To the Tumbnails:
If there are spaces in filename the Tumbnail generator looks for a file rawurlencode($filename) or something linke that, which means that the file is not found in the filesystem.
The error appears if a plugin "manually" adds his filename in a table as for example fe_user (picture) and the filename is f.e. "bild 199.jpg"...
(I know replacing spaces with "_" by the plugin would solve this, but I dont see the necessary to make urlencode for the filename??)
Updated by Oliver Hader about 17 years ago
Wow. This is still present in TYPO3 4.2.0-alpha1... ;-)
I finally added the small patch to solve this and to show thumbnails of files like "something.GIF".
Updated by Oliver Hader about 17 years ago
- TYPO3_4-1 (rev. 2513)
- Trunk (rev. 2514)