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

IPv6 regular expression does not match addresses starting in ::

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.7-PL1
    • 3.0.8-RC1
    • Sessions
    • None

    Description

      The first two checks output int(0), all the other checks match fine.

      var_dump( preg_match(get_preg_expression('ipv6'), '::ffff:192.0.2.128') );
      var_dump( preg_match(get_preg_expression('ipv6'), '::1') );
      var_dump( preg_match(get_preg_expression('ipv6'), '0:0::0:0:1') );
      var_dump( preg_match(get_preg_expression('ipv6'), '2001:252:0:1::2008:6') );
      var_dump( preg_match(get_preg_expression('ipv6'), '2001:252:0:1::192.168.0.2') );

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: