Changeset 69 for trunk/zoo-kernel/zoo_loader.c
- Timestamp:
- Jan 13, 2011, 1:40:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_loader.c
r32 r69 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright 2008-20 09GeoLabs SARL. All rights reserved.4 * Copyright 2008-2011 GeoLabs SARL. All rights reserved. 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 109 109 110 110 map* tmpMap=NULL; 111 111 112 112 if(strncmp(cgiContentType,"text/xml",8)==0){ 113 113 char *buffer=new char[cgiContentLength+1]; … … 144 144 } 145 145 146 if(strncasecmp(cgiRequestMethod,"post",4)==0 && getMap(tmpMap,"request")==NULL){ 147 char *tmpKey=strdup(tmpMap->name); 148 char *tmpValue=strdup(tmpMap->value); 149 freeMap(&tmpMap); 150 free(tmpMap); 151 char* tmpValueFinal=(char*) malloc((strlen(tmpKey)+strlen(tmpValue)+2)*sizeof(char)); 152 sprintf(tmpValueFinal,"%s=%s",tmpKey,tmpValue); 153 tmpMap=createMap("request",tmpValueFinal); 154 free(tmpValueFinal); 155 } 146 156 /** 147 157 * In case that the POST method was used, then check if params came in XML
Note: See TracChangeset
for help on using the changeset viewer.