src/server/safs/cgi.c

changeset 579
e10457d74fe1
parent 567
fed45fc71e7c
equal deleted inserted replaced
578:eb48f716b31c 579:e10457d74fe1
846 return -1; 846 return -1;
847 } 847 }
848 } 848 }
849 value = cx_mutstrn(buf + value_begin, i - value_begin); 849 value = cx_mutstrn(buf + value_begin, i - value_begin);
850 850
851 cx_strlower(name); 851 for(int l=0;i<name.length;l++) {
852 name.ptr[l] = tolower(name.ptr[l]);
853 }
852 name = cx_strdup_a(a, cx_strtrim((cxstring){name.ptr, name.length})); 854 name = cx_strdup_a(a, cx_strtrim((cxstring){name.ptr, name.length}));
853 value = cx_strtrim_m(value); 855 value = cx_strtrim_m(value);
854 856
855 if(name.length == 0 || value.length == 0) { 857 if(name.length == 0 || value.length == 0) {
856 return -1; 858 return -1;

mercurial