Skip to content

Commit

Permalink
docs: fix comment in sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 5, 2023
1 parent 626a774 commit 75907cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user_guide_src/source/libraries/validation/008.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
$request = \Config\Services::request();

if ($validation->withRequest($request)->run()) {
// If you want to get the validated data.
// If you use the input data, you should get it from the getValidated() method.
// Otherwise you may create a vulnerability.
$validData = $validation->getValidated();

// ...
Expand Down

0 comments on commit 75907cf

Please sign in to comment.