This is an automated email from the ASF dual-hosted git repository. pgil pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 69cea81 Fixed: SeoConfigUtil does not maintain char-replace order (OFBIZ-12259) 69cea81 is described below commit 69cea81b12258f79a859f433b93d9de830b983b3 Author: Gil Portenseigne <p...@riseup.net> AuthorDate: Tue Jun 22 16:29:42 2021 +0200 Fixed: SeoConfigUtil does not maintain char-replace order (OFBIZ-12259) Thanks: Ingo Wolfmayr for your contribution --- .../webapp/src/main/java/org/apache/ofbiz/webapp/SeoConfigUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/SeoConfigUtil.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/SeoConfigUtil.java index 18c5d26..ddf7e6c 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/SeoConfigUtil.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/SeoConfigUtil.java @@ -22,6 +22,7 @@ import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Locale; @@ -106,7 +107,7 @@ public final class SeoConfigUtil { forwardResponseCodes = new HashMap<>(); userExceptionPatterns = new LinkedList<>(); specialProductIds = new HashMap<>(); - charFilters = new HashMap<>(); + charFilters = new LinkedHashMap<>(); try { URL seoConfigFilename = UtilURL.fromResource(SEO_CONFIG_FILENAME); Document configDoc = UtilXml.readXmlDocument(seoConfigFilename, false);