Skip to content

Commit 403b473

Browse files
committed
docs: add warning
1 parent 12dce39 commit 403b473

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,11 @@ If your method needs to work with parameters, the function will need a minimum o
696696
2. the parameter string (``$params``)
697697
3. an array with all of the data that was submitted the form (``$data``)
698698

699+
.. warning:: The other field values in ``$data`` is unvalidated (or maybe invalid)
700+
data. Using unvalidated input data is a source of vulnerability. You must
701+
perform the necessary validation within your custom rules before using the
702+
data in ``$data``.
703+
699704
The ``$data`` array is especially handy
700705
for rules like ``required_with`` that needs to check the value of another submitted field to base its result on:
701706

0 commit comments

Comments
 (0)