- Timestamp:
- Jan 13, 2011, 1:40:10 AM (14 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal_python.c
r67 r69 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright (c) 2009-201 0GeoLabs SARL4 * Copyright (c) 2009-2011 GeoLabs SARL 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 337 337 res=createMap(PyString_AsString(key),PyString_AsString(value)); 338 338 } 339 Py_DECREF(value);340 339 Py_DECREF(key); 341 340 } -
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 -
trunk/zoo-kernel/zoo_service_loader.c
r63 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 … … 1343 1343 } 1344 1344 xmlChar* mv=xmlNodeListGetString(doc,cur4->xmlChildrenNode,1); 1345 if(mv==NULL){ 1346 xmlDocPtr doc1=xmlNewDoc(BAD_CAST "1.0"); 1347 int buffersize; 1348 xmlDocSetRootElement(doc1,cur4->xmlChildrenNode); 1349 xmlDocDumpFormatMemoryEnc(doc1, &mv, &buffersize, "utf-8", 1); 1350 char size[1024]; 1351 sprintf(size,"%d",buffersize); 1352 addToMap(tmpmaps->content,"size",size); 1353 } 1345 1354 addToMap(tmpmaps->content,"value",(char*)mv); 1346 1355 xmlFree(mv);
Note: See TracChangeset
for help on using the changeset viewer.