1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

catalog: Do not check value for duplication nextCatalog

The value field stores the path as it appears in the catalog definition,
the URL is built using xmlBuildURI that changes the relative paths to
absolute.

This change fixes the issue of using relative path to the same catalog
in the same file.

Fix https://gitlab.gnome.org/GNOME/libxml2/-/issues/1040
This commit is contained in:
Daniel Garcia Moreno
2026-01-18 19:47:11 +01:00
parent f8399e62a3
commit deed3b7873

View File

@@ -1243,7 +1243,6 @@ xmlParseXMLCatalogNode(xmlNodePtr cur, xmlCatalogPrefer prefer,
while (prev != NULL) {
if ((prev->type == XML_CATA_NEXT_CATALOG) &&
(xmlStrEqual (prev->URL, entry->URL)) &&
(xmlStrEqual (prev->value, entry->value)) &&
(prev->prefer == entry->prefer) &&
(prev->group == entry->group)) {
if (xmlDebugCatalogs)