From a6f75c30b7c19227c9f8b81467ecc25fd0904cee Mon Sep 17 00:00:00 2001 From: Antony Chiu Date: Mon, 19 Feb 2024 12:22:30 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bb241b008e..d60269e5ed 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

OpenCms

- +

OpenCms logo From 9c743362024f1d3c027f121a147d154b5108e56e Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Wed, 28 Feb 2024 04:04:40 +0000 Subject: [PATCH 2/2] mobb fix commit: 8f947e2d-bdac-4b2b-b493-c343ccf7fe47 --- src/org/opencms/i18n/CmsLocaleManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/opencms/i18n/CmsLocaleManager.java b/src/org/opencms/i18n/CmsLocaleManager.java index 8ecce0690e..f030b9e398 100644 --- a/src/org/opencms/i18n/CmsLocaleManager.java +++ b/src/org/opencms/i18n/CmsLocaleManager.java @@ -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.

@@ -305,7 +306,7 @@ public static List getLocaleVariants( result.add(basename); } if (wantDefaultAsBase) { - result.add(basename + "_" + getDefaultLocale().toString()); + result.add(basename + "_" + HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(getDefaultLocale().toString()))); } return result; }