Work on a problem with http_user_agent() that affects a limited number of systems.
This commit is contained in:
parent
09bafd825c
commit
78f2cbe010
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue