From f48343390362cfb50ef6614d003c3cc588d3f841 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Wed, 3 Feb 2016 06:02:07 -0500 Subject: Allow .docbook files as file path, #699995 --- libyelp/yelp-uri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libyelp') diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c index ca315641..7425f25c 100644 --- a/libyelp/yelp-uri.c +++ b/libyelp/yelp-uri.c @@ -1437,8 +1437,9 @@ resolve_gfile (YelpUri *uri, const gchar *query, const gchar *hash) g_object_unref (old); } else if (g_str_equal (mime_type, "text/xml") || - g_str_equal (mime_type, "application/docbook+xml") || - g_str_equal (mime_type, "application/xml")) { + g_str_equal (mime_type, "application/docbook+xml") || + g_str_equal (mime_type, "application/xml") || + g_str_has_suffix (basename, ".docbook")) { char *path; priv->tmptype = YELP_URI_DOCUMENT_TYPE_DOCBOOK; -- cgit v1.2.1