mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Don't allow overriding server URL if set in config.json
This has security implications.
This commit is contained in:
parent
e3e3315125
commit
312a3f812e
@ -214,7 +214,7 @@ export default class App extends Component {
|
||||
}
|
||||
|
||||
let queryParams = parseQueryString();
|
||||
if (typeof queryParams.server === "string") {
|
||||
if (typeof queryParams.server === "string" && !connectParams.url) {
|
||||
connectParams.url = queryParams.server;
|
||||
|
||||
// When using a custom server, some configuration options don't
|
||||
@ -224,7 +224,7 @@ export default class App extends Component {
|
||||
if (typeof queryParams.nick === "string") {
|
||||
connectParams.nick = queryParams.nick;
|
||||
}
|
||||
if (typeof queryParams.channels == "string") {
|
||||
if (typeof queryParams.channels === "string") {
|
||||
connectParams.autojoin = queryParams.channels.split(",");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user