mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #1691 from mluto/socketio-decode-cookie-session
Decode the sessionID before sending it to the server
This commit is contained in:
commit
0b2c67e998
2 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ function handshake()
|
||||||
createCookie("token", token, 60);
|
createCookie("token", token, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
var sessionID = readCookie("sessionID");
|
var sessionID = decodeURIComponent(readCookie("sessionID"));
|
||||||
var password = readCookie("password");
|
var password = readCookie("password");
|
||||||
|
|
||||||
var msg = {
|
var msg = {
|
||||||
|
|
|
@ -116,7 +116,7 @@ function init() {
|
||||||
//sends a message over the socket
|
//sends a message over the socket
|
||||||
function sendSocketMsg(type, data)
|
function sendSocketMsg(type, data)
|
||||||
{
|
{
|
||||||
var sessionID = readCookie("sessionID");
|
var sessionID = decodeURIComponent(readCookie("sessionID"));
|
||||||
var password = readCookie("password");
|
var password = readCookie("password");
|
||||||
|
|
||||||
var msg = { "component" : "pad", // FIXME: Remove this stupidity!
|
var msg = { "component" : "pad", // FIXME: Remove this stupidity!
|
||||||
|
|
Loading…
Reference in a new issue