From 04eed35bdaddafa11a0cad664b01f476cdf20462 Mon Sep 17 00:00:00 2001 From: GeoNetwork opensource <59019313+geonetworkbuild@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:51:04 +0100 Subject: [PATCH] [Backport 4.2.x] Formatters / Properly detect URL ending in 1,2,3 or 5 (#8564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Formatters / Properly detect URL ending in 1,2,3 or 5 Fixes https://github.com/geonetwork/core-geonetwork/issues/8226 * Update utility-tpl.xsl --------- Co-authored-by: François Prunayre --- web/src/main/webapp/xslt/common/utility-tpl.xsl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/main/webapp/xslt/common/utility-tpl.xsl b/web/src/main/webapp/xslt/common/utility-tpl.xsl index bd470fe94da..6b9d15bb653 100644 --- a/web/src/main/webapp/xslt/common/utility-tpl.xsl +++ b/web/src/main/webapp/xslt/common/utility-tpl.xsl @@ -22,6 +22,7 @@ --> @@ -125,8 +126,10 @@ + ((http|https|ftp)://[^\s()]+[^\s\[\]`!(){};:'\\".,?«»“”‘’]) + + regex="{$regex}">