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

IPv6 regular expression does not match addresses starting in ::

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.8-RC1
    • 3.0.7-PL1
    • Sessions
    • None

      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') );

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

              Created:
              Updated:
              Resolved: