From 9a613078f6cdf21b8976a3a4cfc73b109897fbda Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 14 Nov 2016 12:35:23 +0100 Subject: [PATCH] Properly parse IE 11 user agent * fixes #2101 Signed-off-by: Morris Jobke --- settings/js/authtoken_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 6eb04b63f2..c30636f642 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -106,7 +106,7 @@ var matches = viewData.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/); var userAgentMap = { - ie: /(?:MSIE|Trident) (\d+)/, + ie: /(?:MSIE|Trident|Trident\/7.0; rv)[ :](\d+)/, // Microsoft Edge User Agent from https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx edge: /^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/, // Firefox User Agent from https://developer.mozilla.org/en-US/docs/Web/HTTP/Gecko_user_agent_string_reference