summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-03-31 20:43:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-03-31 20:43:40 +0000
commitdbc60edabf08540db18eb603e2901836423f2b0a (patch)
treedbd71e70aa04fdd949814cf8c0719625fd4c900b /ext/ftp
parentf8708f369d6279622f97bbbca636377732d4a924 (diff)
downloadphp-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.c3
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;
}