--- Ftp.php 2017-06-22 16:14:29.235002872 +0200 +++ Ftp.php.new 2017-12-21 14:39:58.812342698 +0100 @@ -199,7 +199,7 @@ } else { $url = 'ftp://'; } - $url .= $this->_params['username'] . ':' . $this->_params['password'] + $url .= $this->_params['username'] . ':' . @urlencode($this->_params['password']) . '@' . $this->_params['hostspec'] . ':' . $this->_params['port'] . '/' . $this->_getPath($path, $name); $stream = @fopen($url, 'r');