mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #1147 from kingmook/develop
Fix Issue #1122 RE: IE9 and Password Protected Pads using HTTPS
This commit is contained in:
commit
dc3db7a4a8
1 changed files with 7 additions and 1 deletions
|
@ -64,7 +64,13 @@ function createCookie(name, value, days, path)
|
||||||
if(!path)
|
if(!path)
|
||||||
path = "/";
|
path = "/";
|
||||||
|
|
||||||
document.cookie = name + "=" + value + expires + "; path=" + 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'){
|
||||||
|
document.cookie = name + "=" + value + expires + "; path="+document.location;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
document.cookie = name + "=" + value + expires + "; path=" + path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function readCookie(name)
|
function readCookie(name)
|
||||||
|
|
Loading…
Reference in a new issue