From ea404ec7ab4571f1c8a06d69ffa713476a020e03 Mon Sep 17 00:00:00 2001 From: Vankka Date: Sun, 25 Jun 2023 21:14:13 +0300 Subject: [PATCH] Fix PlaceholderServiceImpl#updateContent not quoting replacement --- .../discordsrv/common/placeholder/PlaceholderServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java b/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java index cc0e8b4d..8ae1c0f7 100644 --- a/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java +++ b/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java @@ -217,7 +217,7 @@ public class PlaceholderServiceImpl implements PlaceholderService { Pattern.LITERAL ) .matcher(input) - .replaceFirst(output instanceof String ? (String) output : output.toString()); + .replaceFirst(Matcher.quoteReplacement(output.toString())); } private Object getResultRepresentation(List results, String placeholder, Matcher matcher) {