Doctrine 1
  1. Doctrine 1
  2. DC-458

Doctrine_Validator_Ip fails on IPV6 IP addresses.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.6
    • Fix Version/s: 1.2.2
    • Component/s: Validators
    • Labels:
      None

      Description

      Doctrine_Validator_Ip->validate() uses ip2long() in order to validate IP addresses.

      However, ip2long() only works for IPv4 addresses, and not IPv6 addresses.

      Attached is a patch to use filter_var which validates both IPv4 and IPv6 properly.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Josh Boyd
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: