From: Ilia Alshanetsky Date: Wed, 31 Mar 2004 20:43:40 +0000 (+0000) Subject: Fixed bug #27809 (ftp_systype returns null on some ftp servers). X-Git-Tag: php-5.0.0RC2RC1~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbc60edabf08540db18eb603e2901836423f2b0a;p=php Fixed bug #27809 (ftp_systype returns null on some ftp servers). --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 69a164c8b1..687dd19f0c 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -394,6 +394,9 @@ ftp_syst(ftpbuf_t *ftp) return NULL; } syst = ftp->inbuf; + while (*syst == ' ') { + syst++; + } if ((end = strchr(syst, ' '))) { *end = 0; }