FTP connection when password has an @ failing

Created on 22 March 2018, about 7 years ago
Updated 14 May 2025, 19 days ago

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.

πŸ› Bug report
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component

update.module

Created by

πŸ‡ΊπŸ‡ΈUnited States jfha73

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024