Changeset 331 for trunk/zoo-project/zoo-kernel/zoo_loader.c
- Timestamp:
- Sep 2, 2011, 11:20:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_loader.c
r329 r331 76 76 #endif 77 77 78 char *strQuery=strdup(cgiQueryString); 78 79 map* tmpMap=NULL; 79 80 … … 107 108 buffer[cgiContentLength]=0; 108 109 tmpMap=createMap("request",buffer); 110 fprintf(stderr,"%s\n",tmpMap->value); 109 111 }else{ 110 112 buffer[0]=0; … … 141 143 } 142 144 else{ 145 dumpMap(tmpMap); 143 146 char **array, **arrayStep; 144 147 if (cgiFormEntries(&array) != cgiFormSuccess) { … … 179 182 */ 180 183 map* t1=getMap(tmpMap,"request"); 181 if(t1!=NULL ){184 if(t1!=NULL && strncasecmp(t1->value,"<",1)==0){ 182 185 addToMap(tmpMap,"xrequest",t1->value); 183 186 xmlInitParser(); … … 281 284 xmlFreeDoc(doc); 282 285 xmlCleanupParser(); 286 }else{ 287 freeMap(&tmpMap); 288 free(tmpMap); 289 tmpMap=createMap("not_valid","true"); 283 290 } 284 291 … … 297 304 token1=strtok_r(NULL,"=",&saveptr1); 298 305 } 299 if(strcasecmp(name,"metapath")==0) 300 addToMap(tmpMap,name,value); 306 addToMap(tmpMap,name,value); 301 307 free(name); 302 308 free(value); 309 name=NULL; 310 value=NULL; 303 311 token=strtok_r(NULL,"&",&saveptr); 304 312 } 305 313 306 314 } 315 316 317 if(strncasecmp(cgiContentType,"multipart/form-data",19)==0){ 318 map* tmp=getMap(tmpMap,"dataInputs"); 319 if(tmp!=NULL){ 320 addToMap(tmpMap,"dataInputs",strstr(strQuery,"dataInputs=")+11); 321 } 322 } 307 323 308 324 runRequest(tmpMap);
Note: See TracChangeset
for help on using the changeset viewer.