Make sure the network name cannot be changed through URL override when the network info is not displayed

This commit is contained in:
Jérémie Astori 2018-08-11 18:12:49 -04:00
parent 039d1220cb
commit 13e6f37eda
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -182,6 +182,11 @@ function parseOverrideParams(params, data) {
continue; continue;
} }
// When the network is not displayed, its name in the UI is not customizable
if (!data.displayNetwork && key === "name") {
continue;
}
if (key === "join") { if (key === "join") {
value = value.split(",").map((chan) => { value = value.split(",").map((chan) => {
if (!chan.match(/^[#&!+]/)) { if (!chan.match(/^[#&!+]/)) {