Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9297

Add support for Extended Passive Mode (EPSV) in class ftp_fsock to better support IPv6 connections.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.10-RC1
    • 3.0.x
    • Other
    • None

      		// open the connection to start sending the file
      		if (!preg_match('#[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+#', $ip_port, $temp))

      From line 738 of functions_transfer.php

      This regex will only match an IPv4 address. The other portions of phpBB support IPv6 addresses.

      This looks like a complicated fix due to the way the port number is tacked onto the IP address. Maybe the port could be prepended instead of appended to keep it relatively simple.

            bantu Andreas Fischer [X] (Inactive)
            A_Jelly_Doughnut A_Jelly_Doughnut
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: