Browse Source

Add trim docs.

mscherer 1 year ago
parent
commit
c9c06f596c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Controller/Component/CommonComponent.php

+ 6 - 0
src/Controller/Component/CommonComponent.php

@@ -34,6 +34,12 @@ class CommonComponent extends Component {
 	}
 
 	/**
+	 * 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
 	 */