icxss
This commit is contained in:
parent
c8e906b00d
commit
520ca3faea
|
@ -1026,7 +1026,7 @@ PublicServers.prototype.loadServers = function(dataset, search, clear) {
|
||||||
html += '<span>' + source.region + '</span>';
|
html += '<span>' + source.region + '</span>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<div class="server-info">';
|
html += '<div class="server-info">';
|
||||||
html += '<button data-server-invite-code='+icode+'>Join</button>';
|
html += '<button data-server-invite-code='+icode.replace(/[^a-z0-9]/g,'')+'>Join</button>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
$("#pubs-list").append(html);
|
$("#pubs-list").append(html);
|
||||||
|
@ -1135,6 +1135,7 @@ PublicServers.prototype.joinServer = function (code) {
|
||||||
|
|
||||||
PublicServers.prototype.escape = function(unsafe) {
|
PublicServers.prototype.escape = function(unsafe) {
|
||||||
if(unsafe === undefined) return "";
|
if(unsafe === undefined) return "";
|
||||||
|
|
||||||
return unsafe
|
return unsafe
|
||||||
.replace(/&/g, "&")
|
.replace(/&/g, "&")
|
||||||
.replace(/</g, "<")
|
.replace(/</g, "<")
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue