Fix invalid ftp login

This commit is contained in:
Dennis Eichhorn 2019-03-17 18:21:57 +01:00
parent e8bed84e6e
commit b62d213000
2 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,10 @@ class Directory extends FileAbstract implements FtpContainerInterface, Directory
{
$con = \ftp_connect($http->getHost(), $http->getPort());
if ($con === false) {
return false;
}
\ftp_login($con, $http->getUser(), $http->getPass());
if ($http->getPath() !== '') {

View File

@ -71,6 +71,10 @@ class File extends FileAbstract implements FileInterface
{
$con = \ftp_connect($http->getHost(), $http->getPort());
if ($con === false) {
return false;
}
\ftp_login($con, $http->getUser(), $http->getPass());
if ($http->getPath() !== '') {