From: Vlad Krupin Date: Mon, 18 Mar 2002 23:16:57 +0000 (+0000) Subject: MFH (rev. 1.49) X-Git-Tag: php-4.2.0RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea25cdd7b7200044494ee32c949ae6979432ccb9;p=php MFH (rev. 1.49) --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 3350e86642..dbabdf3c58 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -689,6 +689,8 @@ ftp_size(ftpbuf_t *ftp, const char *path) if (ftp == NULL) return -1; + if (!ftp_type(ftp, FTPTYPE_IMAGE)) + return -1; if (!ftp_putcmd(ftp, "SIZE", path)) return -1; if (!ftp_getresp(ftp) || ftp->resp != 213)