Changeset 378
- Timestamp:
- Nov 4, 2012, 3:43:29 PM (12 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/main_conf_read.l
r364 r378 31 31 attname [a-zA-Z0-9_\-:]+ 32 32 33 attvalue1 [ \*,;@a-zA-Z0-9_\-.:" "\"\'/\\\(\)\+\x41-\xff]+33 attvalue1 [%\*,;@a-zA-Z0-9_\-.:" "\"\'/\\\(\)\+\x41-\xff]+ 34 34 35 35 attvalue \"[^"]*\"|\'[^']*\' -
trunk/zoo-project/zoo-kernel/service_internal.c
r375 r378 1206 1206 map* tmpm2=getMap(tmp_maps->content,"tmpUrl"); 1207 1207 if(tmpm1!=NULL && tmpm2!=NULL){ 1208 sprintf(url,"%s/%s/%s_%i.xml",tmpm1->value,tmpm2->value,service,pid); 1208 if(strncasecmp(tmpm2->value,"http://",7)==0){ 1209 sprintf(url,"%s/%s_%i.xml",tmpm2->value,service,pid); 1210 }else 1211 sprintf(url,"%s/%s/%s_%i.xml",tmpm1->value,tmpm2->value,service,pid); 1209 1212 } 1210 1213 } … … 1892 1895 map *tmp3=getMapFromMaps(m,"main","serverAddress"); 1893 1896 char *file_url; 1894 file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(s->name)+strlen(ext->value)+strlen(tmpI->name)+13)*sizeof(char)); 1895 sprintf(file_url,"%s/%s/%s_%s_%i.%s",tmp3->value,tmp2->value,s->name,tmpI->name,cpid+100000,ext->value); 1897 if(strncasecmp(tmp2->value,"http://",7)==0){ 1898 file_url=(char*)malloc((strlen(tmp2->value)+strlen(s->name)+strlen(ext->value)+strlen(tmpI->name)+13)*sizeof(char)); 1899 sprintf(file_url,"%s/%s_%s_%i.%s",tmp2->value,s->name,tmpI->name,cpid+100000,ext->value); 1900 }else{ 1901 file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(s->name)+strlen(ext->value)+strlen(tmpI->name)+13)*sizeof(char)); 1902 sprintf(file_url,"%s/%s/%s_%s_%i.%s",tmp3->value,tmp2->value,s->name,tmpI->name,cpid+100000,ext->value); 1903 } 1896 1904 addToMap(tmpI->content,"Reference",file_url); 1897 1905 if(hasExt!=true){ … … 2524 2532 addToCache(m,url,fcontent,fsize); 2525 2533 free(fcontent); 2526 free(cached); 2534 if(cached!=NULL) 2535 free(cached); 2527 2536 return 0; 2528 2537 }
Note: See TracChangeset
for help on using the changeset viewer.