Fix quotes breaking formatted message strings (#1118)

This commit is contained in:
rtm516 2020-08-10 21:44:20 +01:00 committed by GitHub
parent c7958af1db
commit b84986a502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,7 @@ public class LanguageUtils {
formatString = key;
}
return MessageFormat.format(formatString.replace("&", "\u00a7"), values);
return MessageFormat.format(formatString.replace("'", "''").replace("&", "\u00a7"), values);
}
/**