From aa3803cb0b8e91b52d5a7bf4cf35c533320d57a8 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 13 Sep 2014 09:47:22 -0500 Subject: [PATCH] Update functions.php A more efficient check for IE >= 11 than the previous commit --- 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 75a1f3719..9ce4b2dec 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)) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') && preg_match( '/rv:(.*?)\)/', $_SERVER['HTTP_USER_AGENT'], $logVersion))) + if (( preg_match( '/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $logVersion)) || (preg_match( '/.*Trident.*rv:(.*?)(;|\))/', $_SERVER['HTTP_USER_AGENT'], $logVersion))) { $version = $logVersion[1]; $browser = 'ie';