forked from External/mage
Fixed admin pswd not always parsed correctly on server
This commit is contained in:
parent
e67620260c
commit
ef6d5e826e
2 changed files with 18 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ import mage.server.tournament.TournamentFactory;
|
|||
import mage.server.util.ConfigSettings;
|
||||
import mage.server.util.PluginClassLoader;
|
||||
import mage.server.util.ServerMessagesUtil;
|
||||
import mage.server.util.SystemUtil;
|
||||
import mage.server.util.config.GamePlugin;
|
||||
import mage.server.util.config.Plugin;
|
||||
import mage.utils.MageVersion;
|
||||
|
|
@ -106,6 +107,7 @@ public class Main {
|
|||
}
|
||||
else if (arg.startsWith(adminPasswordArg)) {
|
||||
adminPassword = arg.replace(adminPasswordArg, "");
|
||||
adminPassword = SystemUtil.sanitize(adminPassword);
|
||||
}
|
||||
}
|
||||
Connection connection = new Connection();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue