Ticket #159: request_parser.patch

File request_parser.patch, 1005 bytes (added by jmckenna, 7 years ago)

possible fix (please review)

  • request_parser.c

     
    17401740  map* r_inputs = getMap (request,toCheck);
    17411741  if (r_inputs == NULL){
    17421742    if(mandatory>0){
    1743       char *replace=_("Mandatory parameter <%s> was not specified");
     1743      const char *replace=_("Mandatory parameter <%s> was not specified");
    17441744      char *message=(char*)malloc((strlen(replace)+strlen(toCheck)+1)*sizeof(char));
    17451745      sprintf(message,replace,toCheck);
    17461746      if(lres==NULL){
     
    17891789      }
    17901790    }
    17911791    if(hasValidValue<0){
    1792       char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");
     1792      const char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");
    17931793      nb=0;
    17941794      char *vvalues=NULL;
    1795       char* num=_("is");
     1795      const char* num=_("is");
    17961796      while(avalues[nb]!=NULL){
    17971797        char *tvalues;
    17981798        if(vvalues==NULL){

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