Ignore:
Timestamp:
Jan 15, 2013, 4:08:02 PM (7 years ago)
Author:
djay
Message:

Fix issue when only one cookie key value was sent.

File:
1 edited

Legend:

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

    r390 r391  
    21072107    int hasValidCookie=-1;
    21082108    char *tcook=strdup(cgiCookie);
    2109     if(strstr(cgiCookie,";")>0){
     2109    if(strstr(cgiCookie,";")!=NULL){
    21102110      char *token,*saveptr;
    21112111      token=strtok_r(cgiCookie,";",&saveptr);
     
    21182118        }
    21192119        token=strtok_r(NULL,";",&saveptr);
     2120      }
     2121    }else{
     2122      if(strstr(cgiCookie,"=")!=NULL && strcasestr(cgiCookie,"ID")!=NULL){
     2123        tcook=strdup(cgiCookie);
     2124        hasValidCookie=1;
    21202125      }
    21212126    }
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