]> spindle.queued.net Git - midori/commitdiff
Don't skip CDATA section nodes in feeds
authorDale Whittaker <dayul@users.sf.net>
Thu, 25 Mar 2010 22:01:46 +0000 (23:01 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 25 Mar 2010 22:01:46 +0000 (23:01 +0100)
extensions/feed-panel/feed-parse.c

index 1f4b1614ca98766c23f1800b6601e3492ff68fba..2eb2bea4f2a0696226802d4efc6cd3ee61e07873 100644 (file)
@@ -21,8 +21,9 @@ feed_get_element_string (FeedParser* fparser)
 
     if (!node->children ||
         xmlIsBlankNode (node->children) ||
-        node->children->type != XML_TEXT_NODE
-        )
+        (node->children->type != XML_TEXT_NODE &&
+         node->children->type != XML_CDATA_SECTION_NODE)
+       )
     {
         /* Some servers add required elements with no content,
          * create a dummy string to handle it.