-2009-05-19 Jim Evins <evins@purple>
+2009-07-25 Jim Evins <evins@snaught.com>
+
+ * src/xml-label.c: (gl_xml_label_open):
+ Relax limits when parsing file. Allows large embedded image
+ files.
+
+2009-05-19 Jim Evins <evins@snaught.com>
* configure.in:
* po/LINGUAS:
filename = g_filename_from_utf8 (utf8_filename, -1, NULL, NULL, NULL);
g_return_val_if_fail (filename, NULL);
- doc = xmlParseFile (filename);
+ doc = xmlReadFile (filename, NULL, XML_PARSE_HUGE);
if (!doc) {
g_message (_("xmlParseFile error"));
*status = XML_LABEL_ERROR_OPEN_PARSE;
gl_debug (DEBUG_XML, "START");
- doc = xmlParseDoc ((xmlChar *) buffer);
+ doc = xmlReadDoc ((xmlChar *) buffer, NULL, NULL, XML_PARSE_HUGE);
if (!doc) {
g_message (_("xmlParseFile error"));
*status = XML_LABEL_ERROR_OPEN_PARSE;