Update functions.php
Add logic to detect the User Agent string from IE11 (and potentially newer).pull/327/merge
parent
60ed8d7366
commit
91b99b97a5
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue