From 91b99b97a5c2e84085370ea77bae0c7c2d7300da Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 13 Sep 2014 08:19:08 -0500 Subject: [PATCH] Update functions.php Add logic to detect the User Agent string from IE11 (and potentially newer). --- web/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index ff6ed2a12..75a1f3719 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -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';