Ignore:
Timestamp:
Jun 14, 2019, 10:08:22 PM (5 years ago)
Author:
djay
Message:

Fix const decelaration to build on windows, pass full children content for text/* ComplexData?.

File:
1 edited

Legend:

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

    r938 r939  
    10701070                                               buffersize);
    10711071                                }
    1072                               else if (cur5 != NULL)/*
    1073                                      && cur5->type == XML_CDATA_SECTION_NODE)*/{
    1074                                 while(cur5!=NULL && cur5->type != XML_CDATA_SECTION_NODE)
    1075                                   cur5=cur5->next;
    1076                                 xmlFree(mv);
    1077                                 if(cur5!=NULL && cur5->content!=NULL){
    1078                                   mv=xmlStrdup(cur5->content);
    1079                                 }
     1072                              else if (cur5 != NULL){
     1073                                if(ltmp!= NULL && strstr(ltmp->value,"text/")!=NULL){
     1074                                  xmlChar *tmp = xmlNodeListGetRawString (doc,
     1075                                                                          cur4->xmlChildrenNode,
     1076                                                                          0);
     1077                                  addToMap (tmpmaps->content, "value",
     1078                                            (char *) tmp);
     1079                                  xmlFree (tmp);
     1080                                }else{
     1081                                  while(cur5!=NULL && cur5->type != XML_CDATA_SECTION_NODE)
     1082                                    cur5=cur5->next;
     1083                                  xmlFree(mv);
     1084                                  if(cur5!=NULL && cur5->content!=NULL){
     1085                                    mv=xmlStrdup(cur5->content);
     1086                                  }
     1087                                }
    10801088                              }
    10811089                            }
     
    18611869  if (r_inputs == NULL){
    18621870    if(mandatory>0){
    1863       char *replace=_("Mandatory parameter <%s> was not specified");
     1871      const char *replace=_("Mandatory parameter <%s> was not specified");
    18641872      char *message=(char*)malloc((strlen(replace)+strlen(toCheck)+1)*sizeof(char));
    18651873      sprintf(message,replace,toCheck);
     
    19101918    }
    19111919    if(hasValidValue<0){
    1912       char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");
     1920      const char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");
    19131921      nb=0;
    19141922      char *vvalues=NULL;
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