Update functions.php

Add logic to detect the User Agent string from IE11 (and potentially newer).
pull/327/merge
Andrew Bauer 2014-09-13 08:19:08 -05:00
parent 60ed8d7366
commit 91b99b97a5
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ function getBrowser( &$browser, &$version )
}
else
{
if ( preg_match( '/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $logVersion) )
if (( preg_match( '/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $logVersion)) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') && preg_match( '/rv:(.*?)\)/', $_SERVER['HTTP_USER_AGENT'], $logVersion)))
{
$version = $logVersion[1];
$browser = 'ie';