浏览代码

Add trim docs.

mscherer 1 年之前
父节点
当前提交
c9c06f596c
共有 1 个文件被更改,包括 6 次插入0 次删除
  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
 	 */