_csrf_token [CSRF attack detected.] using sfAdminThemejRollerPlugin Symfony 1.4
February 12th, 2010
5 comments
Couldn’t figure out why I kept getting this error:
_csrf_token [CSRF attack detected.]
It turned out that it was a bug in sfAdminThemejRollerPlugin:
plugins/sfAdminThemejRollerPlugin/data/generator/sfDoctrineModule/jroller/template/templates/_list_batch_actions.php
line: 9 from:
[?php $form = new sfForm(); if ($form->isCSRFProtected()): ?]
to:
[?php $form = new BaseForm(); if ($form->isCSRFProtected()): ?]
Thanks to Adrian (edsadr)
http://gestadieu.blogspot.com/2010/01/new-version-for-sfadminthemejrollerplug.html