Skip to content

Commit

Permalink
Add trim docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Feb 15, 2024
1 parent a8e4999 commit c9c06f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Controller/Component/CommonComponent.php
Expand Up @@ -34,6 +34,12 @@ public function initialize(array $config): void {
}

/**
* Trim data from the request to ensure trustworthy input regarding
* emptiness. This needs to happen in communication layer to ensure
* this for all other layers.
*
* Can be skipped for edge cases using `DataPreparation.notrim` Configure setting.
*
* @param \Cake\Event\EventInterface $event
* @return void
*/
Expand Down

0 comments on commit c9c06f5

Please sign in to comment.