Skip to content

Commit

Permalink
Invoke missing path escaping for FTP paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Nov 21, 2021
1 parent bf43b27 commit 11027e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Adapter/Ftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,10 @@ protected function ftpRawlist($options, $path)
$connection = $this->getConnection();

if ($this->isPureFtpd) {
$path = str_replace(' ', '\ ', $path);
$this->escapePath($path);
$path = str_replace([' ', '[', ']'], ['\ ', '\\[', '\\]'], $path);
}

return ftp_rawlist($connection, $options . ' ' . $path);
return ftp_rawlist($connection, $options . ' ' . $this->escapePath($path));
}

private function getRawExecResponseCode($command)
Expand Down

0 comments on commit 11027e2

Please sign in to comment.