Added - add scheduled tournament now checks if no spaces are present in id

This commit is contained in:
jakub.salavec
2025-06-19 13:47:26 +02:00
parent d6d8ae9287
commit 9d0cf8c7c4

View File

@@ -981,6 +981,7 @@ public class AdminRequestHandler extends LotroServerRequestHandler implements Ur
Throw400IfValidationFails("name", name, name.length() <= 45, "Tournament name must be 45 characters or less.");
boolean wc = ParseBoolean("wc", wcStr, false);
Throw400IfStringNull("tournamentId", tournamentId);
Throw400IfValidationFails("tournamentId", tournamentId, !tournamentId.contains(" "), "Tournament id must not contain spaces.");
Throw400IfStringNull("format", formatStr);
Throw400IfStringNull("start", startStr);