Skip to content

Commit 2cb0af0

Browse files
authored
Strict parsing for legacy converted placeholders (#5740)
This fixes issues where arguments converted implicitly from MiniMessage are prone to bleeding into the rest of the output. The fix mostly works since `MINI_MESSAGE_NO_TAGS` is only used for legacy conversion, while `miniMessageInstance` is used in all other cases normally. If that were not the case, we would not want strict parsing everywhere since we don't enforce this in translations anyway. Fixes #5729 Fixes #5730 Fixes #5732 Fixes #5735 Fixes #5720 Closes #5728
1 parent 570eca2 commit 2cb0af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/utils/AdventureUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class AdventureUtil {
5050
}
5151
LEGACY_SERIALIZER = builder.build();
5252

53-
MINI_MESSAGE_NO_TAGS = MiniMessage.miniMessage();
53+
MINI_MESSAGE_NO_TAGS = MiniMessage.builder().strict(true).build();
5454

5555
miniMessageInstance = createMiniMessageInstance();
5656
}

0 commit comments

Comments
 (0)