[TYPO3-core] RFC #12013: tslib_pagegen fails to read mime type of the shortcut icon

Xavier Perseguers typo3 at perseguers.ch
Sun Sep 20 11:33:19 CEST 2009


Hi,

This is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=12013

Branches: Trunk

Problem:
After switching to PHP 5.3 I got a warning while showing my website:

finfo_file() [function.finfo-file]: File or path not found http://mywebsite/fileadmin/.../favicon.ico [^]

In addition, I should point out that finfo_file is available with PHP 5.3.0, meaning this part of the code is not compatible anyway with PHP < 5.3 or with the use of PECL fileinfo >= 0.1.0.

Solution:
Give finfo_file the physical path of the favorite icon, not the URL.

Regards

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12013.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090920/f9f90f76/attachment-0001.txt 


More information about the TYPO3-team-core mailing list