Fix brackets not being escaped properly in descriptions

Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
BuildTools committed 2021-07-14 16:50:19 +03:00
1 parent 06754c88a4
commit 280a37ef5b
7 files changed
+14 -14

No files matched your search

@@ -163,7 +163,7 @@ public class EditHomeCommand extends CommandBase implements TabCompleter {
}
// Confirmation message
MessageManager.sendMessage(p, "edit_home_update_description", homeName, MineDown.escape(newDescriptionString));
MessageManager.sendMessage(p, "edit_home_update_description", homeName, MineDown.escape(newDescriptionString.replace("]", "]").replace("[", "[").replace("(", "❲").replace(")", "❳")));
} catch (SQLException e) {
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred editing a home description.");
}