Work on a problem with http_user_agent() that affects a limited number of systems.

This commit is contained in:
Mark Crane
2013-02-20 11:48:19 +00:00
parent 09bafd825c
commit 78f2cbe010

View File

@@ -798,8 +798,7 @@ function format_string ($format, $data) {
//finally get the correct version number
$known = array('Version', $ub, 'other');
$pattern = '#(?<browser>' . join('|', $known) .
')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
$pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
if (!preg_match_all($pattern, $u_agent, $matches)) {
// we have no matching number just continue
}