mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue