From e6d7e36f5fd9a5bdfe69eecb3a6487d134470b7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 30 Jul 2015 15:29:12 +0200 Subject: [PATCH] Properly detect Microsoft Edge in UserOnline.class.php --- .../install/files/lib/data/user/online/UserOnline.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 200a3ffad2..678396d6e7 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -170,6 +170,10 @@ class UserOnline extends UserProfile { return 'Internet Explorer '.(isset($match[2]) ? $match[2] : $match[1]); } + if (preg_match('~edge/(\d{2}\.\d+)~i', $this->userAgent, $match)) { + return 'Microsoft Edge '.$match[1]; + } + // iron if (preg_match('~iron/([\d\.]+)~i', $this->userAgent, $match)) { return 'Iron '.$match[1]; -- 2.20.1