Project

General

Profile

Actions

Bug #24481

closed

Missing favicon results in invalid html code

Added by Thomas Koetter almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2011-01-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

On line 498 of class.tslib_pagegen.php the MIME type of the favicon is determined:
$iconMimeType = ' type="' . finfo_file($finfo, PATH_site . $favIcon) . '"';

However, when the given file does not exist the result is "directory". This is not a valid value for the type attribute of the link element. Therefore, the function should at least check for an existing file or for a valid MIME type.

(issue imported from #M16923)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #43921: felogin not working if favicon.ico link doesn't workClosed2012-12-12

Actions
Actions

Also available in: Atom PDF