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

diff --git a/NEWS b/NEWS
index 05d75b1a502dbf3237a2a639455a4b5e818f7e8b..e956754d12fed7e346ff0a3efd8109073e2917a8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2004, Version 4.3.6
 - Synchronized bundled GD library with GD 2.0.22. (Ilia)
+- Fixed bug #27809 (ftp_systype returns null on some ftp servers). (Ilia)
 - Fixed bug #27802 (default number of children to 8 when PHP_FCGI_CHILDREN is
   not defined). (Ilia)
 - Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). (Ilia)
index 89aa74f03dd3f8a662ca96d9efe3587d2fc6fafe..ee17f5dce0ba5b568f23ca7e12d9d0d6596b4a4b 100644 (file)
@@ -362,6 +362,9 @@ ftp_syst(ftpbuf_t *ftp)
                return NULL;
 
        syst = ftp->inbuf;
+       while (*syst == ' ') {
+               syst++;
+       }
        if ((end = strchr(syst, ' ')))
                *end = 0;
        ftp->syst = estrdup(syst);