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(".")); }