mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'wip-mdl-42491-master' of git://github.com/deraadt/moodle
This commit is contained in:
commit
96d0198b8a
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue