Added IE11 detection
authorSascha Greuel <sascha@softcreatr.de>
Sat, 5 Oct 2013 20:28:06 +0000 (22:28 +0200)
committerSascha Greuel <sascha@softcreatr.de>
Sat, 5 Oct 2013 20:28:06 +0000 (22:28 +0200)
wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

index cb560f417a3b6ff295842cca9a5dec545d088438..14624117078f6d4a9be85a80687ccb6c1a6e1523 100644 (file)
@@ -166,8 +166,8 @@ class UserOnline extends UserProfile {
                }
                
                // ie
-               if (preg_match('~msie ([\d\.]+)~i', $this->userAgent, $match)) {
-                       return 'Internet Explorer '.$match[1];
+               if (preg_match('~msie ([\d\.]+)|Trident\/\d{1,2}.\d{1,2}; rv:([0-9]*)~i', $this->userAgent, $match)) {
+                       return 'Internet Explorer '.(isset($match[2]) ? $match[2] : $match[1]);
                }
                
                // iron