Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296160

FTP connection when password has an @ failing

$
0
0

Hey guys,

When updating modules, administrators are asked for FTP user and password to connect to the server, I have noticed that when you have a FTP user that has a password that contains @ in the password, the FTP connection fails, so I believe that Drupal is using a line like this to connect via FTP:

ftp_connect($user:$password@$server);

When it should be something like this:

$conn=ftp_connect($server);
ftp_login($conn, $user, $password);

To avoid this I have setup SSH2 extension of PHP and I've been using SSH to connect to the server, but you should consider fixing that problem.

Thanks.


Viewing all articles
Browse latest Browse all 296160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>