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

room name encode

parent b6346fa4
......@@ -12,9 +12,9 @@
result = "M#"
else
result = ""
result += name
result += encodeURIComponent(name)
if password
result += '$' + password
result += '$' + encodeURIComponent(password)
result
#127.0.0.1:8087/test
......@@ -25,7 +25,7 @@
if password
result += ':' + encodeURIComponent(password)
result += '@'
result += ip + ':' + port + '/' + encodeURIComponent(room)
result += ip + ':' + port + '/' + room
if _private
result += '?private=true'
if server_auth
......
......@@ -36,9 +36,9 @@
} else {
result = "";
}
result += name;
result += encodeURIComponent(name);
if (password) {
result += '$' + password;
result += '$' + encodeURIComponent(password);
}
return result;
};
......@@ -53,7 +53,7 @@
}
result += '@';
}
result += ip + ':' + port + '/' + encodeURIComponent(room);
result += ip + ':' + port + '/' + room;
if (_private) {
result += '?private=true';
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