diff --git a/src/Controller/Component/CsrfComponent.php b/src/Controller/Component/CsrfComponent.php index c049d3b9d71..95695704d8a 100644 --- a/src/Controller/Component/CsrfComponent.php +++ b/src/Controller/Component/CsrfComponent.php @@ -70,7 +70,8 @@ class CsrfComponent extends Component public function initialize(array $config) { if ($this->getController()->getRequest()->getParam('_csrfToken') !== false) { - deprecationWarning('CSRF token already defined. Disable CsrfComponent if you use CsrfProtectionMiddleware.'); + deprecationWarning('Loading CsrfComponent while CsrfProtectionMiddleware is active ' . + 'will corrupt CSRF data and form submitting will fail.'); } }