We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
version
Cidr
1 parent 4937afb commit 823c693Copy full SHA for 823c693
reference/constraints/Cidr.rst
@@ -126,6 +126,12 @@ Parameter Description
126
This determines exactly *how* the CIDR notation is validated and can take one
127
of :ref:`IP version ranges <reference-constraint-ip-version>`.
128
129
+.. note::
130
+
131
+ Be aware IP range (``*_private``, ``*_reserved``) is only validating against IP, but not the whole
132
+ netmask. You need to set the ``{{ min }}`` value for the netmask to harden the validation a bit.
133
+ For example, ``9.0.0.0/6`` results to be ``*_public``, but also uses ``10.0.0.0/8`` range (``*_private``).
134
135
.. versionadded:: 7.1
136
137
The support of all IP version ranges was introduced in Symfony 7.1.
0 commit comments