Ticket #1072 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

open directory (ftp class)

Reported by: christoph@greatescape.de Assigned to: zothos
Priority: minor Milestone: ispCP ω 1.0.0 - RC5
Component: Frontend (GUI) Version: ispCP ω 1.0.0 - RC3
Severity: Easy Keywords:
Cc:

Description

open directory list fails when using non standard ftp port. In vfs.php ftp_connect is used without port. Changing it to ftp_connect('host',port) helps. Maybe there should be a place to change port numbers and hostnames if this should be standard.

Attachments

Change History

03/04/08 13:29:54 changed by Doc

Can you also support SSL connections since one might disable unsecure connections which also breaks choose dir functionality.

03/04/08 13:49:42 changed by Doc

Fixed my problem by replacing ftp_connect with ftp_ssl_connect in vfs.php. This also works if ssl is not enabled or required!

03/06/08 21:42:34 changed by zothos

  • owner set to zothos.

we could use the port which is specified at admin/settings_ports.php and reuse the values for the ftp stuff.

and other ideas?

03/14/08 16:29:41 changed by rats

  • summary changed from open directory to open directory (ftp class).
  • component changed from Backend (Engine) to Frontend (GUI).
  • severity changed from Don't know to Easy.
  • milestone changed from Working to ispCP ω 1.0.0.

03/17/08 17:41:11 changed by rats

  • milestone changed from ispCP ω 1.0.0 to ispCP ω 1.0.0 - RC5.

03/21/08 19:15:15 changed by rats

  • status changed from new to closed.
  • resolution set to fixed.

my solution in r1068

$this->_handle = @ftp_ssl_connect('localhost');
		if (!is_resource($this->_handle)) {
			$this->_handle = @ftp_connect('localhost');
			if (!is_resource($this->_handle)) {
				$this->close();
				return false;
			}
		}

it's untested but should work.


Add/Change #1072 (open directory (ftp class))




Action