m_c
03-24-2010, 07:30 PM
Is there anyway to avoid security tokens for selected pages?
I'm working on updating the gallery2 integration, and I've now got everything displaying how it should. However whenever I try to submit a form within gallery2, I get a 'Your submission could not be processed because a security token was missing.' error.
Having searched for it, I see that security tokens were introduced in 3.8.something (I still have the 3.7.x installed). I could edit the gallery2 template files to add the security token, however the easier option would be to disable the security tokens for the embedded gallery forms.
Failing that, how can I make the security token available to the gallery2 templates?
--------------- Added 1269464391 at 1269464391 ---------------
Now solved!
Turning of the CSRF protection with the following line has done the trick
define('CSRF_PROTECTION', false);
I'm working on updating the gallery2 integration, and I've now got everything displaying how it should. However whenever I try to submit a form within gallery2, I get a 'Your submission could not be processed because a security token was missing.' error.
Having searched for it, I see that security tokens were introduced in 3.8.something (I still have the 3.7.x installed). I could edit the gallery2 template files to add the security token, however the easier option would be to disable the security tokens for the embedded gallery forms.
Failing that, how can I make the security token available to the gallery2 templates?
--------------- Added 1269464391 at 1269464391 ---------------
Now solved!
Turning of the CSRF protection with the following line has done the trick
define('CSRF_PROTECTION', false);