Merge branch 'wip-mdl-42491-master' of git://github.com/deraadt/moodle

This commit is contained in:
Dan Poltawski 2013-10-28 11:21:26 +08:00
commit 96d0198b8a
2 changed files with 16 additions and 0 deletions

View file

@ -499,6 +499,9 @@ class core_useragent {
// See: http://www.useragentstring.com/pages/Internet%20Explorer/.
if (preg_match("/MSIE ([0-9\.]+)/", $useragent, $match)) {
$browser = $match[1];
// See: http://msdn.microsoft.com/en-us/library/ie/bg182625%28v=vs.85%29.aspx for IE11+ useragent details.
} else if (preg_match("/Trident\/[0-9\.]+/", $useragent) && preg_match("/rv:([0-9\.]+)/", $useragent, $match)) {
$browser = $match[1];
} else {
return false;
}