]> git.sur5r.net Git - glabels/commitdiff
2009-07-25 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sun, 26 Jul 2009 03:43:22 +0000 (03:43 +0000)
committerJim Evins <evins@snaught.com>
Sun, 26 Jul 2009 03:43:22 +0000 (03:43 +0000)
* src/xml-label.c: (gl_xml_label_open):
Relax limits when parsing file.  Allows large embedded image
files.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@855 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/xml-label.c

index 3d24085b6b44c9c0ee6c90fe47aeb1dad5ba0454..eb149be528fd50f9582cc95d2d50536b37bd1a5f 100644 (file)
@@ -1,4 +1,10 @@
-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:
index defc5deeade8d39fa24b7671454073687de2fd4b..2570710178250f22e88d84681093f2eca197f9df 100644 (file)
@@ -184,7 +184,7 @@ gl_xml_label_open (const gchar      *utf8_filename,
        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;
@@ -221,7 +221,7 @@ gl_xml_label_open_buffer (const gchar      *buffer,
 
        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;