summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */