|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
Recommended reading explaining FTP details and quirks:
|
|
|
|
|
http://cr.yp.to/ftp.html (by D.J. Bernstein)
|
|
|
|
|
*/
|
|
|
|
|
// fix type conversion error josswern 23.02.2011
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define KIO_FTP_PRIVATE_INCLUDE
|
|
|
|
@ -913,7 +914,9 @@ int Ftp::ftpOpenPASVDataConnection()
|
|
|
|
|
// The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
|
|
|
|
|
// but anonftpd gives '227 =160,39,200,55,6,245'
|
|
|
|
|
int i[6];
|
|
|
|
|
char *start = strchr(ftpResponse(3), '(');
|
|
|
|
|
// fix type conversion error josswern 23.02.2011
|
|
|
|
|
const char *start; // statt char *start 23.02.11
|
|
|
|
|
start = strchr(ftpResponse(3), '(');
|
|
|
|
|
if ( !start )
|
|
|
|
|
start = strchr(ftpResponse(3), '=');
|
|
|
|
|
if ( !start ||
|
|
|
|
@ -965,7 +968,8 @@ int Ftp::ftpOpenEPSVDataConnection()
|
|
|
|
|
return ERR_INTERNAL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char *start = strchr(ftpResponse(3), '|');
|
|
|
|
|
// fix type conversion error josswern 23.02.2011
|
|
|
|
|
const char *start = strchr(ftpResponse(3), '|'); // statt char *start = strchr(ftpResponse(3), '|'); josswern
|
|
|
|
|
if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
|
|
|
|
|
return ERR_INTERNAL;
|
|
|
|
|
|
|
|
|
|