Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
Add logic to detect the User Agent string from IE11 (and potentially newer).
  • Loading branch information
Andrew Bauer committed Sep 13, 2014
1 parent 60ed8d7 commit 91b99b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/includes/functions.php
Expand Up @@ -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';
Expand Down

0 comments on commit 91b99b9

Please sign in to comment.