From 66ea5298f04a117bd9aefed7df7d6f731f0950e4 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 6 Dec 2023 08:02:07 +0900 Subject: [PATCH 1/2] docs: remove space --- user_guide_src/source/libraries/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation.rst b/user_guide_src/source/libraries/validation.rst index ff449c9e6fb9..1eb0a6873da3 100644 --- a/user_guide_src/source/libraries/validation.rst +++ b/user_guide_src/source/libraries/validation.rst @@ -222,7 +222,7 @@ Traditional Rules ----------------- .. important:: Traditional Rules exist only for backward compatibility. Do not - use them in new projects. Even if you are already using them, we recommend + use them in new projects. Even if you are already using them, we recommend switching to Strict Rules. .. warning:: When validating data that contains non-string values, such as JSON data, it is recommended to use **Strict Rules**. From 330b27674e62a4acf4cc481109f0d121a08e109a Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 6 Dec 2023 08:02:18 +0900 Subject: [PATCH 2/2] docs: improve description --- user_guide_src/source/libraries/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation.rst b/user_guide_src/source/libraries/validation.rst index 1eb0a6873da3..497a682d5f0a 100644 --- a/user_guide_src/source/libraries/validation.rst +++ b/user_guide_src/source/libraries/validation.rst @@ -525,7 +525,7 @@ replaced by the **value** of the matched incoming field. An example should clari :lines: 2- .. note:: Since v4.3.5, you must set the validation rules for the placeholder - field (``id``). + field (the ``id`` field in the sample code above) for security. In this set of rules, it states that the email address should be unique in the database, except for the row that has an id matching the placeholder's value. Assuming that the form POST data had the following: