[TYPO3-core] RFC #16892: Bug: t3lib_utility_Client::getBrowserInfo() fails to detect Chrome

Steffen Kamper info at sk-typo3.de
Thu Jan 13 22:34:34 CET 2011


Hi,

i don't like this exception.

Using condtion this is already taken into account, see this code:

// take all identified browsers into account, eg chrome deliver
// webkit=>532.5, chrome=>4.1, safari=>532.5
// so comparing string will be
// "webkit532.5 chrome4.1 safari532.5"
$all = '';
foreach ($browserInfo['all'] as $key => $value) {
	$all .= $key . $value . ' ';
}
foreach ($values as $test) {
	if (stripos($all, $test) !== FALSE) {
		return TRUE;
	}
}

vg Steffen


More information about the TYPO3-team-core mailing list