fix(account): do not leak into messages (#16212)

Closes #16211
This commit is contained in:
Bastian 2023-01-18 13:06:36 +01:00 committed by GitHub
parent e5ef0a417a
commit 5ddb79cbe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,8 @@ public class AccountConsole {
if (auth != null) user = auth.getUser();
Locale locale = session.getContext().resolveLocale(user);
map.put("locale", locale.toLanguageTag());
Properties messages = theme.getMessages(locale);
Properties messages = new Properties();
messages.putAll(theme.getMessages(locale));
if(StringUtil.isNotBlank(realm.getDefaultLocale())) {
messages.putAll(realm.getRealmLocalizationTextsByLocale(realm.getDefaultLocale()));
}