From 13e6f37edae7c4e992057904bd4ce09a0849eadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 11 Aug 2018 18:12:49 -0400 Subject: [PATCH] Make sure the network name cannot be changed through URL override when the network info is not displayed --- client/js/socket-events/configuration.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/js/socket-events/configuration.js b/client/js/socket-events/configuration.js index cf9041e1..5443283c 100644 --- a/client/js/socket-events/configuration.js +++ b/client/js/socket-events/configuration.js @@ -182,6 +182,11 @@ function parseOverrideParams(params, data) { continue; } + // When the network is not displayed, its name in the UI is not customizable + if (!data.displayNetwork && key === "name") { + continue; + } + if (key === "join") { value = value.split(",").map((chan) => { if (!chan.match(/^[#&!+]/)) {