adapt preg_match to recognize IE 10

This commit is contained in:
Klaus Leithoff 2013-04-18 14:21:32 +00:00
parent 7b1047aacb
commit fa091d879c

View File

@ -36,7 +36,7 @@ class browser
/*
Determine browser and version
*/
if(preg_match('/MSIE ([0-9].[0-9]{1,2})/',$HTTP_USER_AGENT,$log_version))
if(preg_match('/MSIE ([0-9]*[0-9].[0-9]{1,2})/',$HTTP_USER_AGENT,$log_version))
{
self::$version = $log_version[1];
self::$agent = 'IE';
@ -203,4 +203,4 @@ class browser
html::content_header($fn,$mime,$length,$nocache);
}
}
browser::init_static();
browser::init_static();