summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-09-16 17:21:08 +0100
committerRichard Hughes <richard@hughsie.com>2015-09-16 17:59:30 +0100
commitda5e21b44a51a9df81f168ecbbd4416925558315 (patch)
tree4d0d92a64b3c1af9ca4cf4effce86eb8bfe2a519
parentb4300723d5f34e78ecabc3008e0022dee8a41e42 (diff)
downloadappstream-glib-da5e21b44a51a9df81f168ecbbd4416925558315.tar.gz
trivial: Accept single quoted versions of the XML header
-rw-r--r--libappstream-glib/as-app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 7093e17..f0c5b84 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -4250,6 +4250,8 @@ as_app_parse_appdata_file (AsApp *app,
if (tmp == NULL)
tmp = g_strstr_len (data, len, "<?xml version=\"1.0\" encoding=\"utf-8\"?>");
if (tmp == NULL)
+ tmp = g_strstr_len (data, len, "<?xml version='1.0' encoding='utf-8'?>");
+ if (tmp == NULL)
priv->problems |= AS_APP_PROBLEM_NO_XML_HEADER;
/* check for copyright */