www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marinos J. Yannikos" <n...@complang.tuwien.ac.at>
Subject Re: mod_proxy/2464: proxy clients include Date: header field in ftp-downloads
Date Thu, 18 Jun 1998 10:44:48 GMT
Update: bug is caused by a newline in the hdr_entry.value for the
Content-Length header field (i.e. the value contains the numerical
value with a surplus trailing newline). Around line 937 in
src/modules/proxy/proxy_ftp.c, this code propagates the trailing
newline to the "size" variable (from ftp_getrc_msg), which is later
copied to the header value field:
			else if (i == 213) { /* Size command ok */
							size = resp;

Quick & dirty fix:
Add:
if (size[strlen(size)-1]=='\n') size[strlen(size)-1]='\0';
(at the following line). 

Mime
View raw message