Commit 0ce82231 authored by 神楽坂玲奈's avatar 神楽坂玲奈

room name encode

parent b6346fa4
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
result = "M#" result = "M#"
else else
result = "" result = ""
result += name result += encodeURIComponent(name)
if password if password
result += '$' + password result += '$' + encodeURIComponent(password)
result result
#127.0.0.1:8087/test #127.0.0.1:8087/test
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
if password if password
result += ':' + encodeURIComponent(password) result += ':' + encodeURIComponent(password)
result += '@' result += '@'
result += ip + ':' + port + '/' + encodeURIComponent(room) result += ip + ':' + port + '/' + room
if _private if _private
result += '?private=true' result += '?private=true'
if server_auth if server_auth
......
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
} else { } else {
result = ""; result = "";
} }
result += name; result += encodeURIComponent(name);
if (password) { if (password) {
result += '$' + password; result += '$' + encodeURIComponent(password);
} }
return result; return result;
}; };
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
} }
result += '@'; result += '@';
} }
result += ip + ':' + port + '/' + encodeURIComponent(room); result += ip + ':' + port + '/' + room;
if (_private) { if (_private) {
result += '?private=true'; result += '?private=true';
if (server_auth) { if (server_auth) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment