From: Graham Leggett Date: Sat, 7 Apr 2001 12:59:36 +0000 (+0000) Subject: Turns out continuation lines in ftp can start with a space... fix detection X-Git-Tag: 2.0.17~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6dd232b365294c3e2f994e0dbea20e77551bc4;p=thirdparty%2Fapache%2Fhttpd.git Turns out continuation lines in ftp can start with a space... fix detection of these things in proxy_ftp.c PR: Obtained from: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88747 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_ftp.c b/modules/proxy/proxy_ftp.c index 2db4b567ec5..0b3dc7b720f 100644 --- a/modules/proxy/proxy_ftp.c +++ b/modules/proxy/proxy_ftp.c @@ -234,7 +234,7 @@ static int ftp_getrc_msg(conn_rec *c, apr_bucket_brigade *bb, char *msgbuf, int /* FIXME: If the line was too long, read till LF */ - mb = apr_cpystrn(mb, response+4, me - mb); + mb = apr_cpystrn(mb, response + (' ' == response[0] ? 1 : 4), me - mb); } while (memcmp(response, buff, 4) != 0); }