Ignore:
Timestamp:
Jul 28, 2014, 11:01:52 PM (10 years ago)
Author:
djay
Message:

Fix issue when passing <\![CDATA[]]> in ComplexData? for text/xml mimeType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r492 r496  
    18401840                  int buffersize;
    18411841                  xmlNodePtr cur5=cur4->children;
    1842                   while(cur5!=NULL &&cur5->type!=XML_ELEMENT_NODE)
     1842                  while(cur5!=NULL &&cur5->type!=XML_ELEMENT_NODE && cur5->type!=XML_CDATA_SECTION_NODE)
    18431843                    cur5=cur5->next;
    1844                   xmlDocSetRootElement(doc1,cur5);
    1845                   xmlDocDumpFormatMemoryEnc(doc1, &mv, &buffersize, "utf-8", 1);
    1846                   char size[1024];
    1847                   sprintf(size,"%d",buffersize);
    1848                   addToMap(tmpmaps->content,"size",size);
    1849                   xmlFreeDoc(doc1);
     1844                  if(cur5->type!=XML_CDATA_SECTION_NODE){
     1845                    xmlDocSetRootElement(doc1,cur5);
     1846                    xmlDocDumpFormatMemoryEnc(doc1, &mv, &buffersize, "utf-8", 1);
     1847                    char size[1024];
     1848                    sprintf(size,"%d",buffersize);
     1849                    addToMap(tmpmaps->content,"size",size);
     1850                    xmlFreeDoc(doc1);
     1851                  }
    18501852                }
    18511853                addToMap(tmpmaps->content,"value",(char*)mv);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png