Project

General

Profile

Fehler #122

FTP Passive mode

Added by C haoz over 4 years ago.

Status:
Neu
Priority:
Normal
Category:
Bug
Target version:
-
eXtplorer Version:
2.1.2
Joomla! Version:
none

Description

Hi,

my providers FTP is configured to only serve passive mode requests.

Extplorer has no support for that, it always uses active mode. There is no way to configure this, no automatic fallback nor an error message if directory listing fails. The error message from Pear NETFTP is "Could not get raw directory listing" but not shown to the user.

My solution is to hardcode passive mode, but a better solution would be nice.

--- a/include/authentication/ftp.php
+++ b/include/authentication/ftp.php
@ -63,6 +63,8 @ class ext_ftp_authentication {

}

+ $GLOBALS['FTPCONNECTION']->setPassive();
$_SESSION['credentials_ftp']['username'] = $ftp_login;
$_SESSION['credentials_ftp']['password'] = $ftp_pass;
$_SESSION['ftp_host'] = $ftp_host;

cu, chaoz

Also available in: Atom PDF