diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-03-31 20:43:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-03-31 20:43:40 +0000 |
commit | dbc60edabf08540db18eb603e2901836423f2b0a (patch) | |
tree | dbd71e70aa04fdd949814cf8c0719625fd4c900b /ext/ftp | |
parent | f8708f369d6279622f97bbbca636377732d4a924 (diff) | |
download | php-git-dbc60edabf08540db18eb603e2901836423f2b0a.tar.gz |
Fixed bug #27809 (ftp_systype returns null on some ftp servers).
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/ftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |