[TYPO3-team-templavoila] RFC: #11676 Bug: With PHP 5.3 clickmenu item "TemplaVoila" in File > List module isn't displayed

Steffen Kamper info at sk-typo3.de
Mon Aug 10 11:35:16 CEST 2009


Hi Tolleiv,

what i see from the doc it's availabel in >= 5.3.0, and always return 
something like text/html; charset=xyz, or FALSE.
So why not check against FALSE?

$enabled·=·(@finfo_file($fi,·$table)·!==·FALSE);

vg Steffen

Tolleiv.Nietsch schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11676
> 
> Branches:
> trunk
> 
> Problem:
> TemplaVoila uses PHP's finfo_open() if it exists.Currently it checks 
> like this: @finfo_file($fi, $table) == 'text/html'
> 
> But finfo_file() might return: text/html; charset=iso-8859-1
> 
> Solution:
> The provided patch fixes it with a simple strpos-lookup.
> 
> Additional informations:
> Pretty much a no-brainer - but I'm not sure if the old check happend 
> with some intention...
> 


More information about the TYPO3-team-templavoila mailing list