Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9297

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.x
    • 3.0.10-RC1
    • Other
    • None

    Description

      		// 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: