Skip to content

Commit

Permalink
mobb fix commit: 839ed0ec-f4e2-4194-ade9-0429165de26d
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobb autofixer committed Feb 28, 2024
1 parent e84d394 commit 2a35e5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/opencms/i18n/CmsLocaleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import org.apache.commons.logging.Log;

import com.cybozu.labs.langdetect.DetectorFactory;
import org.springframework.web.util.HtmlUtils;

/**
* Manages the locales configured for this OpenCms installation.<p>
Expand Down Expand Up @@ -305,7 +306,7 @@ public static List<String> getLocaleVariants(
result.add(basename);
}
if (wantDefaultAsBase) {
result.add(basename + "_" + getDefaultLocale().toString());
result.add(basename + "_" + HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(getDefaultLocale().toString())));
}
return result;
}
Expand Down

0 comments on commit 2a35e5d

Please sign in to comment.