Open sspat opened 3 years ago
Given an IPv6 value of ::ffff:10.233.65.138, I cannot save it to the database, as the regexp validation in \Doctrine\DBAL\PostgresTypes\InetType::convertToDatabaseValue does not pass for it.
::ffff:10.233.65.138
\Doctrine\DBAL\PostgresTypes\InetType::convertToDatabaseValue
This value passes a check with filter_var
var_dump(filter_var('::ffff:10.233.65.138', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)); // string(20) "::ffff:10.233.65.138"
PostgreSQL also is accepting this value in a column of type inet
inet
IMO there's no need for inet validation in the type
Given an IPv6 value of
::ffff:10.233.65.138
, I cannot save it to the database, as the regexp validation in\Doctrine\DBAL\PostgresTypes\InetType::convertToDatabaseValue
does not pass for it.This value passes a check with filter_var