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:50:01 GMT
The following reply was made to PR mod_proxy/2464; it has been noted by GNATS.

From: "Marinos J. Yannikos" <nino@complang.tuwien.ac.at>
To: apbugs@hyperreal.org, apache-bugdb@apache.org
Cc: apbugs@apache.org
Subject: Re: mod_proxy/2464: proxy clients include Date: header field in ftp-downloads
Date: Thu, 18 Jun 1998 12:44:48 +0200

 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