ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject [ofbiz-framework] branch release17.12 updated: Fixed: SeoConfigUtil does not maintain char-replace order (OFBIZ-12259)
Date Tue, 22 Jun 2021 16:29:03 GMT
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 0bfd33a  Fixed: SeoConfigUtil does not maintain char-replace order (OFBIZ-12259)
0bfd33a is described below

commit 0bfd33a2742fed4b7c2493e4788861bef64122b6
Author: Jacques Le Roux <jacques.le.roux@les7arts.com>
AuthorDate: Tue Jun 22 18:28:23 2021 +0200

    Fixed: SeoConfigUtil does not maintain char-replace order (OFBIZ-12259)
    
    Thanks: Ingo Wolfmayr for your contribution
---
 .../src/main/java/org/apache/ofbiz/product/category/SeoConfigUtil.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/category/SeoConfigUtil.java
b/applications/product/src/main/java/org/apache/ofbiz/product/category/SeoConfigUtil.java
index d153139..8b47a8f 100644
--- a/applications/product/src/main/java/org/apache/ofbiz/product/category/SeoConfigUtil.java
+++ b/applications/product/src/main/java/org/apache/ofbiz/product/category/SeoConfigUtil.java
@@ -23,6 +23,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;
@@ -109,7 +110,7 @@ public final class SeoConfigUtil {
         forwardResponseCodes = new HashMap<String, Integer>();
         userExceptionPatterns = new LinkedList<Pattern>();
         specialProductIds = new HashMap<String, String>();
-        charFilters = new HashMap<String, String>();
+        charFilters = new LinkedHashMap<String, String>();
         try {
             URL seoConfigFilename = UtilURL.fromResource(SEO_CONFIG_FILENAME);
             Document configDoc = UtilXml.readXmlDocument(seoConfigFilename, false);

Mime
View raw message