diff options
author | John McLear <john@mclear.co.uk> | 2012-12-03 12:47:11 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-12-03 12:47:11 +0000 |
commit | 0b92fdfc628656f9d7b562d62733778f144e65d9 (patch) | |
tree | 7ad00cb91c90b516e1f4f86b288515517701c61b /src/static/js/pad_utils.js | |
parent | d09894ce779e1b55970514d1318119dd2485da44 (diff) | |
download | etherpad-lite-0b92fdfc628656f9d7b562d62733778f144e65d9.zip |
fix IE auth but only a temp fix
Diffstat (limited to 'src/static/js/pad_utils.js')
-rw-r--r-- | src/static/js/pad_utils.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index f752722f..59c3d419 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -52,8 +52,9 @@ function createCookie(name, value, days, path) if(!path) path = "/"; - if(!path) - path = "/"; + // This fixes an issue with IE not wanting to store cookies for Auth #1234. It's a temp fix because + // Really we should be storing the cookie on teh document.location path and not modifying the fsking URL to contain a password! + document.cookie = name + "=" + value + expires + "; path=" + "/"; //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'){ |