Merge pull request #2551 from lol768/patch-1

Escape apostrophes in localised strings
This commit is contained in:
t00thpick1 2015-07-18 11:24:59 -04:00
commit 60d89c15e6

View File

@ -57,7 +57,7 @@ public final class LocaleLoader {
public static String formatString(String string, Object... messageArguments) {
if (messageArguments != null) {
MessageFormat formatter = new MessageFormat("");
formatter.applyPattern(string);
formatter.applyPattern(string.replace("'", "''"));
string = formatter.format(messageArguments);
}