Changeset 95 for trunk


Ignore:
Timestamp:
Jan 30, 2011, 3:36:47 PM (13 years ago)
Author:
djay
Message:

Remove the odd space by plus caracter replacement in input XML file.

Location:
trunk/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/zoo_loader.c

    r69 r95  
    110110  map* tmpMap=NULL;
    111111
    112   if(strncmp(cgiContentType,"text/xml",8)==0){
     112  if(strncmp(cgiContentType,"text/xml",8)==0 &&
     113     strncasecmp(cgiRequestMethod,"post",4)){
    113114    char *buffer=new char[cgiContentLength+1];
    114115    if(fread(buffer,1,cgiContentLength,cgiIn)){
  • trunk/zoo-kernel/zoo_service_loader.c

    r94 r95  
    13581358                xmlFree(mv);
    13591359              }else{
    1360                 xmlSubstituteEntitiesDefault(1);
    1361                 xmlChar* tmp=xmlNodeListGetString(doc,cur4->xmlChildrenNode,0);
     1360                xmlChar* tmp=xmlNodeListGetRawString(doc,cur4->xmlChildrenNode,0);
    13621361                addToMap(tmpmaps->content,"value",(char*)tmp);
    13631362                map* tmpv=getMap(tmpmaps->content,"value");
     
    13811380                free(tmpv->value);
    13821381                tmpv->value=strdup(res);
    1383                 for(int j=0;j<strlen(tmpv->value);j++)
    1384                   if(tmpv->value[j]==' ')
    1385                     tmpv->value[j]='+';
    13861382                free(res);
    13871383                xmlFree(tmp);
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