Skip to content

Commit

Permalink
Merge pull request #8116 from gerpiet/displying-typo
Browse files Browse the repository at this point in the history
docs: Fix typo in validation.rst
  • Loading branch information
kenjis authored Oct 29, 2023
2 parents b0d8fd8 + f701cce commit dd73604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ or the value that was validated you can add the ``{field}``, ``{param}`` and ``{
On a field with the human name Username and a rule of ``min_length[6]`` with a value of "Pizza", an error would display: "Supplied value (Pizza) for Username must have
at least 6 characters."

.. warning:: If you get the error messages with ``getErrors()`` or ``getError()``, the messages are not HTML escaped. If you use user input data like ``({value})`` to make the error message, it might contain HTML tags. If you don't escape the messages before displying them, XSS attacks are possible.
.. warning:: If you get the error messages with ``getErrors()`` or ``getError()``, the messages are not HTML escaped. If you use user input data like ``({value})`` to make the error message, it might contain HTML tags. If you don't escape the messages before displaying them, XSS attacks are possible.

.. note:: When using label-style error messages, if you pass the second parameter to ``setRules()``, it will be overwritten with the value of the first parameter.

Expand Down

0 comments on commit dd73604

Please sign in to comment.