diff options
-rw-r--r-- | core/parse-xml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index c6b7b9ae6..d1cfc88ed 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -2042,6 +2042,9 @@ int parse_xml_buffer(const char *url, const char *buffer, int size, target_table = table; doc = xmlReadMemory(res, strlen(res), url, NULL, 0); + if (!doc) + doc = xmlReadMemory(res, strlen(res), url, "latin1", 0); + if (res != buffer) free((char *)res); |