Changeset 30042
- Timestamp:
- 09/22/14 01:29:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r30040 r30042 4693 4693 if(status.security == 0) return NULL; 4694 4694 4695 if(fmt == 0)4696 {4695 // if(fmt == 0) 4696 // { 4697 4697 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); 4698 4698 buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0); 4699 4699 buf = ostrcat(buf, "</head><body class=body id=\"command\">", 1, 0); 4700 }4700 // } 4701 4701 4702 4702 debug(10, "cmd: %s", param); … … 4704 4704 buf = ostrcat(buf, tmpstr, 1, 0); 4705 4705 free(tmpstr), tmpstr = NULL; 4706 buf = ostrcat(buf, "</body></html>", 1, 0); 4706 4707 // if(fmt == 0) 4708 buf = ostrcat(buf, "</body></html>", 1, 0); 4707 4709 4708 4710 return buf; … … 4743 4745 tmpstr1 = readfiletomem(tmpstr, 1); 4744 4746 4745 buf = ostrcat(buf, tmpstr1, 1, 0); 4747 buf = ostrcat(buf, _(tmpstr1), 1, 0); 4748 4749 // segfault ?? 4750 // free(helppath), helppath = NULL; 4746 4751 free(tmpstr), tmpstr = NULL; 4747 4752 free(tmpstr1), tmpstr1 = NULL; … … 4801 4806 } 4802 4807 4808 // segfault ?? 4809 // free(helppath), helppath = NULL; 4803 4810 free(tmpstr), tmpstr = NULL; 4811 free(ret1), ret1 = NULL; 4804 4812 // if(fmt == 0) 4805 4813 buf = ostrcat(buf, "</td></tr></table></center></body></html>", 1, 0); … … 4814 4822 if(status.security == 0) return NULL; 4815 4823 4816 if(fmt == 0)4817 {4824 // if(fmt == 0) 4825 // { 4818 4826 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); 4819 4827 buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0); 4820 4828 buf = ostrcat(buf, "</head><body class=body id=\"help\">", 1, 0); 4821 }4829 // } 4822 4830 4823 4831 debug(10, "file: %s", param); … … 4827 4835 free(tmpstr), tmpstr = NULL; 4828 4836 4829 if(fmt == 0)4837 // if(fmt == 0) 4830 4838 buf = ostrcat(buf, "</body></html>", 1, 0); 4831 4839
Note: See TracChangeset
for help on using the changeset viewer.