From ab93d7be826e9607a559608ec7fe5a8d766ba546 Mon Sep 17 00:00:00 2001 From: SirNutt <1850668+SirNutt@users.noreply.github.com> Date: Thu, 23 Jul 2020 12:30:12 -0400 Subject: [PATCH] Remove invalid arg The FTP List command only accepts an optional path argument, the '-A' flag is not in the standard. RFC 959: https://www.ietf.org/rfc/rfc959.txt LIST usage from section 5.3.1: "LIST [ ] " --- Model/Datasource/FtpSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Datasource/FtpSource.php b/Model/Datasource/FtpSource.php index f8771d1..bf41453 100644 --- a/Model/Datasource/FtpSource.php +++ b/Model/Datasource/FtpSource.php @@ -147,7 +147,7 @@ public function read(Model $model, $queryData = array(), $recursive = null) { throw new Exception(__d('cakeftp', 'Folder does not exist')); } $path = $this->_ftp('ftp_pwd', array($this->config['connection'])); - $raw = $this->_ftp('ftp_rawlist', array($this->config['connection'], "-A .", $recursive)); + $raw = $this->_ftp('ftp_rawlist', array($this->config['connection'], ".", $recursive)); if (method_exists($model, 'parseFtpResults')) { $out = $model->parseFtpResults($raw, $path, $this->config); } else {