mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Fixed inconsistencies in description fields; they are now properly escaped by MineDown
This commit is contained in:
1 parent
45c7cddc2c
commit
60f894a006
2 files changed
+2
-2
No files matched your search
@@ -180,7 +180,7 @@ public class EditHomeCommand extends CommandBase implements TabCompleter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation message
|
// Confirmation message
|
||||||
MessageManager.sendMessage(p, "edit_home_update_description", descriptionChangedHome.getName(), MineDown.escape(newDescriptionString.replace("]", "]").replace("[", "[").replace("(", "❲").replace(")", "❳")));
|
MessageManager.sendMessage(p, "edit_home_update_description", descriptionChangedHome.getName(), MineDown.escape(newDescriptionString.replace("]", "\\]").replace("[", "\\[").replace("(", "\\(").replace(")", "\\)")));
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred editing a home description.");
|
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred editing a home description.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ public class EditWarpCommand extends CommandBase implements TabCompleter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation message
|
// Confirmation message
|
||||||
MessageManager.sendMessage(p, "edit_warp_update_description", warpName, MineDown.escape(newDescriptionString.replace("]", "]").replace("[", "[").replace("(", "❲").replace(")", "❳")));
|
MessageManager.sendMessage(p, "edit_warp_update_description", warpName, MineDown.escape(newDescriptionString.replace("]", "\\]").replace("[", "\\[").replace("(", "\\(").replace(")", "\\)")));
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred editing a warp's description.");
|
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred editing a warp's description.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user