Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a04829

Browse files
committed
[Validator] Add note toversion option inCidr constraint
1 parent4937afb commit2a04829

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎reference/constraints/Cidr.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ Parameter Description
126126
This determines exactly *how* the CIDR notation is validated and can take one
127127
of:ref:`IP version ranges<reference-constraint-ip-version>`.
128128

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/7`` results to be ``*_public``, but also uses ``10.0.0.0/8`` range (``*_private``).
134+
129135
..versionadded::7.1
130136

131137
The support of all IP version ranges was introduced in Symfony 7.1.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp