From e91919f72f292b08a87cd9a9696a67e8bb718d0f Mon Sep 17 00:00:00 2001 From: Sofien Haj Chedhli Date: Thu, 21 Sep 2023 11:46:31 +0100 Subject: [PATCH] fix : Enable to create a news with title contains a '.' character followed by a special character - EXO-66277 (#2177) --- .../src/main/java/org/exoplatform/services/cms/impl/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java b/core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java index 90526554b73..6cfe1806a4c 100644 --- a/core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java +++ b/core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java @@ -709,7 +709,7 @@ private static String replaceSpecialChars(String name, String specialChars) { } public static String replaceSpecialChars(String name, String specialChars, String nodeType) { String extension = ""; - if (nodeType.equals(NodetypeConstant.NT_FILE) && name.lastIndexOf(".") != -1) { + if (NodetypeConstant.NT_FILE.equals(nodeType) && name.lastIndexOf(".") != -1) { extension = name.substring(name.lastIndexOf(".")); name = name.substring(0, name.lastIndexOf(".")); }