The following reply was made to PR mod_proxy/2464; it has been noted by GNATS.

From: "Marinos J. Yannikos" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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). 

Reply via email to