Browse Source

Fixed bug #27809 (ftp_systype returns null on some ftp servers).

PEAR_1_4DEV
Ilia Alshanetsky 22 years ago
parent
commit
dbc60edabf
  1. 3
      ext/ftp/ftp.c

3
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;
}

Loading…
Cancel
Save