summaryrefslogtreecommitdiff
path: root/src/static/js/pad_utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pad_utils.js')
-rw-r--r--src/static/js/pad_utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js
index 343e5fce..ff60ca7c 100644
--- a/src/static/js/pad_utils.js
+++ b/src/static/js/pad_utils.js
@@ -55,7 +55,7 @@ function createCookie(name, value, days, path){ /* Used by IE */
}
//Check if the browser is IE and if so make sure the full path is set in the cookie
- if(navigator.appName=='Microsoft Internet Explorer'){
+ if((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null))){
document.cookie = name + "=" + value + expires + "; path=/"; /* Note this bodge fix for IE is temporary until auth is rewritten */
}
else{