From 0931b30cccfd534a64df4da966e67e0175948849 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Thu, 13 Feb 2014 20:21:34 +0100
Subject: [PATCH] adjusted IE detection for smblinks

MSIE 11 tries hard to break any previous working browser detection
even through feature checks. This resolves to browser sniffing (MSIE for
old IE, Trident for IE11+)

See https://forum.dokuwiki.org/thread/10824
---
 lib/scripts/behaviour.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js
index 85ddf503e..6b46add07 100644
--- a/lib/scripts/behaviour.js
+++ b/lib/scripts/behaviour.js
@@ -109,7 +109,7 @@ var dw_behaviour = {
      * @author Michael Klier <chi@chimeric.de>
      */
     checkWindowsShares: function() {
-        if(!LANG.nosmblinks || typeof(document.all) !== 'undefined') {
+        if(!LANG.nosmblinks || navigator.userAgent.match(/(Trident|MSIE)/)) {
             // No warning requested or none necessary
             return;
         }
-- 
GitLab