Index: t3lib/matchcondition/class.t3lib_matchcondition_abstract.php =================================================================== --- t3lib/matchcondition/class.t3lib_matchcondition_abstract.php (revision 7435) +++ t3lib/matchcondition/class.t3lib_matchcondition_abstract.php (working copy) @@ -214,8 +214,16 @@ switch ($key) { case 'browser': $values = t3lib_div::trimExplode(',', $value, true); + // take all founded 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 as $key => $value) { + $all .= $key . $value . ' '; + } foreach ($values as $test) { - if (strpos($browserInfo['browser'] . $browserInfo['version'], $test) !== false) { + if (strpos($all, $test) !== false) { return true; } } @@ -546,7 +554,7 @@ } } - + /** * Evaluates a TypoScript condition given as input, eg. "[browser=net][...(other conditions)...]" *