]> granicus.if.org Git - php/commitdiff
Fixed bug #27809 (ftp_systype returns null on some ftp servers).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 31 Mar 2004 20:43:40 +0000 (20:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 31 Mar 2004 20:43:40 +0000 (20:43 +0000)
ext/ftp/ftp.c

index 69a164c8b19371b5a175c1774c8ed697fdf1e6c0..687dd19f0c08cc65ead85105f025391d436edabf 100644 (file)
@@ -394,6 +394,9 @@ ftp_syst(ftpbuf_t *ftp)
                return NULL;
        }
        syst = ftp->inbuf;
+       while (*syst == ' ') {
+               syst++;
+       }
        if ((end = strchr(syst, ' '))) {
                *end = 0;
        }