mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-28 16:29:30 +00:00
fix(core): add security flags to cookies (HttpOnly, secure)
Fixes #4525
This commit is contained in:
@@ -2329,17 +2329,6 @@ function readCookie(name) {
|
||||
return foundCookie;
|
||||
}
|
||||
|
||||
function readLoginCookie() {
|
||||
var loginValues = null;
|
||||
var cookie = readCookie("0xHIGHFLYxSOGo");
|
||||
if (cookie && cookie.length > 8) {
|
||||
var value = decodeURIComponent(cookie.substr(8));
|
||||
loginValues = value.base64decode().split(":");
|
||||
}
|
||||
|
||||
return loginValues;
|
||||
}
|
||||
|
||||
/* logging widgets */
|
||||
function SetLogMessage(containerId, message, msgType) {
|
||||
var container = $(containerId);
|
||||
|
||||
Reference in New Issue
Block a user