diff --git a/services/src/main/java/org/fao/geonet/api/registries/vocabularies/KeywordsApi.java b/services/src/main/java/org/fao/geonet/api/registries/vocabularies/KeywordsApi.java index 5911513b9d8..137a7b30ef4 100644 --- a/services/src/main/java/org/fao/geonet/api/registries/vocabularies/KeywordsApi.java +++ b/services/src/main/java/org/fao/geonet/api/registries/vocabularies/KeywordsApi.java @@ -812,7 +812,7 @@ public String uploadThesaurus( Log.debug(Geonet.THESAURUS, "Uploading thesaurus: " + fname); // Rename .xml to .rdf for all thesaurus - fname = fname.replaceAll(Pattern.quote(extension), "rdf"); + fname = fname.replace(extension, "rdf"); uploadThesaurus(rdfFile, getStylesheetForExtension(stylesheet, extension), context, fname, type.toString(), dir);