Project

General

Profile

Bug #22862 ยป t3lib_utitlity_client.diff

Administrator Admin, 2010-06-10 20:08

View differences:

t3lib/utility/class.t3lib_utility_client.php (working copy)
'lynx', 'amaya', 'omniweb', 'avant', 'camino', 'flock', 'aol');
$matches = array();
$pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9]+(?:\.[0-9]+)?)#';
$pattern = '#(?P<browser>' . join('|', $known) . ')[/ ]+(?P<version>[0-9]+(?:\.[0-9]+)?)#';
// Find all phrases (or return empty array if none found)
if (!preg_match_all($pattern, strtolower($userAgent), $matches)) {
$browserInfo['browser'] = 'unknown';
    (1-1/1)