Skip to content

Commit 75907cf

Browse files
committed
docs: fix comment in sample code
1 parent 626a774 commit 75907cf

File tree

1 file changed

+2
-1
lines changed
  • user_guide_src/source/libraries/validation

1 file changed

+2
-1
lines changed

user_guide_src/source/libraries/validation/008.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
$request = \Config\Services::request();
55

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

1011
// ...

0 commit comments

Comments
 (0)