]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Turns out continuation lines in ftp can start with a space... fix detection
authorGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 12:59:36 +0000 (12:59 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 12:59:36 +0000 (12:59 +0000)
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

modules/proxy/proxy_ftp.c

index 2db4b567ec54dbf394ebfc65dd680a838a643ea3..0b3dc7b720f47021ad4642ff9520b21207321b96 100644 (file)
@@ -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);
     }