Ignore:
Timestamp:
Oct 12, 2011, 1:13:15 PM (8 years ago)
Author:
djay
Message:

Fix tickets #63, #64 and #68

File:
1 edited

Legend:

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

    r331 r342  
    18861886    addToMap(_tmpMaps->content,"soap","false");
    18871887  if(cgiCookie!=NULL && strlen(cgiCookie)>0){
    1888     addToMap(_tmpMaps->content,"sessid",strstr(cgiCookie,"=")+1);
     1888    char *tcook=strdup(cgiCookie);
     1889    if(strstr(cgiCookie,";")>0){
     1890      char *token,*saveptr;
     1891      token=strtok_r(cgiCookie,";",&saveptr);
     1892      while(token!=NULL){
     1893        if(strcasestr(token,"ID")!=NULL){
     1894          if(tcook!=NULL)
     1895            free(tcook);
     1896          tcook=strdup(token);
     1897        }
     1898        token=strtok_r(NULL,";",&saveptr);
     1899      }
     1900    }
     1901    addToMap(_tmpMaps->content,"sessid",strstr(tcook,"=")+1);
    18891902    char session_file_path[1024];
    18901903    map *tmpPath=getMapFromMaps(m,"main","sessPath");
    18911904    if(tmpPath==NULL)
    18921905      tmpPath=getMapFromMaps(m,"main","tmpPath");
    1893     char *tmp1=strtok(cgiCookie,";");
     1906    char *tmp1=strtok(tcook,";");
    18941907    if(tmp1!=NULL)
    18951908      sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(tmp1,"=")+1);
    18961909    else
    18971910      sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(cgiCookie,"=")+1);
    1898 
     1911    free(tcook);
    18991912    maps *tmpSess=(maps*)calloc(1,MAPS_SIZE);
    19001913    struct stat file_status;
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