Fix URI encoding on register/login, also fix database escape bug
This commit is contained in:
parent
c7aac027dd
commit
b9e465b714
6 changed files with 40 additions and 26 deletions
|
|
@ -332,7 +332,8 @@ function setupCallbacks() {
|
|||
CLIENT.logged_in = true;
|
||||
socket.emit("acp-init");
|
||||
if(SESSION) {
|
||||
AUTH = "name=" + CLIENT.name + "&session=" + SESSION;
|
||||
AUTH = "name=" + encodeURIComponent(CLIENT.name)
|
||||
+ "&session=" + SESSION;
|
||||
createCookie("cytube_uname", CLIENT.name, 7);
|
||||
createCookie("cytube_session", SESSION, 7);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue