Skip to content

Commit af55149

Browse files
committed
docs: add warning to sample code
1 parent 13fbaa5 commit af55149

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • user_guide_src/source/libraries/validation

user_guide_src/source/libraries/validation/038.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
'name' => "is_unique[supplier.name,uuid,{$uuid}]", // is ok
99
'name' => 'is_unique[supplier.name,uuid,{uuid}]', // is ok - see "Validation Placeholders"
1010
]);
11+
// Warning: If `$uuid` is a user input, be sure to validate the format of the value before using it.
12+
// Otherwise, it is vulnerable.

0 commit comments

Comments
 (0)