Welcome Guest, Not a member yet? Register   Sign In
Is there a fix for the CSRF "The action you have requested is not allowed" issue?
#4

[eluser]Unknown[/eluser]
I've been having the same problem and after many tracing I found out a bug in codeigniter 2.0 which is in xss_clean function in codeigniter/libraries/Form_validation.php

Code:
if ( ! isset($this->CI->security))

I changed to this

Code:
$CI =& get_instance();
if ( ! isset($CI->security))

and it works correctly.

It had loaded security class twice and cookies had been unset so the form token hadn't equaled to the cooky after one submit


Messages In This Thread
Is there a fix for the CSRF "The action you have requested is not allowed" issue? - by El Forum - 12-07-2012, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB