From b4a5be1495beffb27edc7a02989b48daaa11c45b Mon Sep 17 00:00:00 2001 From: rg9400 <39887349+rg9400@users.noreply.github.com> Date: Sun, 3 Feb 2019 21:13:42 -0600 Subject: [PATCH] Don't run encodeURIComponent on Invite parameters Seems like encoded server URLs result in an invalid Invite URL. By making this change, I was able to generate valid Invite URLs, even when the room had special characters in the password/room name. I am not sure what the original intent of this code was, or if I am missing something. I did test it in my scenario, and it worked. --- webapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp.js b/webapp.js index 839dd174..87fa3bcb 100644 --- a/webapp.js +++ b/webapp.js @@ -51,7 +51,7 @@ const bootstrap = () => { } let query = '' for (let key in params) { - query += encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + '&' + query += encodeURIComponent(key) + '=' + params[key] + '&' } fullUrl = accessIp + '/#/join?' + query data.fullUrl = fullUrl