summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-22 16:30:45 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-22 17:11:30 +0000
commitb7acc0361c6a2b14bdfe14cd2a84941f0f50d099 (patch)
tree8eca5fc38121267a37c8aa715f2260a93f5eb87b
parent7ac5fbd0d94d0fd70ac3d59720ba2c2b98f9e746 (diff)
downloadappstream-glib-b7acc0361c6a2b14bdfe14cd2a84941f0f50d099.tar.gz
trivial: Relax the XML header requirement
-rw-r--r--libappstream-glib/as-app.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index b77a6f2..d3e78f9 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -4286,11 +4286,7 @@ as_app_parse_appdata_file (AsApp *app,
}
/* validate */
- 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)
- tmp = g_strstr_len (data, len, "<?xml version='1.0' encoding='utf-8'?>");
+ tmp = g_strstr_len (data, len, "<?xml version=");
if (tmp == NULL)
priv->problems |= AS_APP_PROBLEM_NO_XML_HEADER;