From 6079417ded8567fb8f476b0e79894eacccd7821f Mon Sep 17 00:00:00 2001 From: Jonathon Fernyhough Date: Wed, 7 Apr 2021 17:23:09 +0100 Subject: [PATCH] Strip unknown tags --- libappstream-glib/as-node.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libappstream-glib/as-node.c b/libappstream-glib/as-node.c index aafb16aa..f3360ec8 100644 --- a/libappstream-glib/as-node.c +++ b/libappstream-glib/as-node.c @@ -1899,7 +1899,9 @@ as_node_get_localized_unwrap_type_li (const AsNode *node, AS_NODE_ERROR_INVALID_MARKUP, "Unknown tag '%s'", as_tag_data_get_name (data)); - return FALSE; + str = as_node_denorm_get_str_for_lang (hash, data, TRUE); + as_node_cdata_to_escaped (data); + g_string_append_printf (str, "%s", data->cdata); } } return TRUE; @@ -1975,7 +1977,9 @@ as_node_get_localized_unwrap_type_ul (const AsNode *node, AS_NODE_ERROR_INVALID_MARKUP, "Unknown tag '%s'", as_tag_data_get_name (data)); - return FALSE; + str = as_node_denorm_get_str_for_lang (hash, data, TRUE); + as_node_cdata_to_escaped (data); + g_string_append_printf (str, "%s", data->cdata); } } return TRUE;