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

IPv6 regular expression does not match addresses starting in ::

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.8-RC1
    • Component/s: Sessions
    • Labels:
      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') );

        Issue Links

          Activity

          Hide
          bantu Andreas Fischer added a comment -

          I've added some tests for the IPv4 and the IPv6 regular expression: http://github.com/bantu/phpbb3/compare/feature/regex-tests

          Show
          bantu Andreas Fischer added a comment - I've added some tests for the IPv4 and the IPv6 regular expression: http://github.com/bantu/phpbb3/compare/feature/regex-tests
          Hide
          naderman Nils Adermann added a comment -

          Commit message cleanup.

          Show
          naderman Nils Adermann added a comment - Commit message cleanup.

            People

            • Assignee:
              aptx aptx
              Reporter:
              bantu Andreas Fischer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development