Open System32-0101 opened 2 weeks ago
Thanks for the attention and the issue. Can you try undoing them and changing this line instead?
In: https://github.com/wxyz-abcd/node-haxball/blob/main/examples_web/src/htmlQueryHelper.js Line: 12
return Object.keys(json).filter((x)=>(json[x]!=null && json[x]!="")).map((x)=>(encodeURI(x)+"="+encodeURI(json[x]))).join("&");
to:
return Object.keys(json).filter((x)=>(json[x]!=null && json[x]!="")).map((x)=>(encodeURIComponent(x)+"="+encodeURIComponent(json[x]))).join("&");
Password string is not encoded as URI so it will drop an error when you try to enter in a match that includes special characters in the password like (!,@,#,$,%,^, etc...)
Way I fixed: In joinRoom.js Line: 34: Fix:
In: init.js Line: 92 Fix:
This way we assign the password to the decoded URI component that we coded before.
Hope this works :)