From ae5fc59e701e6791f53ada299d6afdff183f0ec1 Mon Sep 17 00:00:00 2001 From: Francois Prunayre Date: Tue, 30 Jan 2024 14:41:21 +0100 Subject: [PATCH] Thesaurus / Improve support of EU publication office SKOS format / Fix codeql. --- .../org/fao/geonet/api/registries/vocabularies/KeywordsApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);