Browse Source

Petitions limited to 255 characters.

master
MagicBot 1 year ago
parent
commit
5084b3e453
  1. 4
      src/engine/db/handlers/dbPetitionHandler.java

4
src/engine/db/handlers/dbPetitionHandler.java

@ -65,7 +65,9 @@ public class dbPetitionHandler extends dbHandlerBase { @@ -65,7 +65,9 @@ public class dbPetitionHandler extends dbHandlerBase {
preparedStatement.setInt(6, petition.reportPlayer.getObjectUUID());
preparedStatement.setString(7, petition.reportPlayer.getFirstName());
preparedStatement.setString(8, petition.playerLocation.toString());
preparedStatement.setString(9, petition.message);
String messageCleaned = petition.message.substring(0, Math.min(petition.message.length(), 255));
preparedStatement.setString(9, messageCleaned);
preparedStatement.executeUpdate();

Loading…
Cancel
Save