• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upgrade 2.1.2 to 2.1.3 ajax error

#1
[eluser]elite-board[/eluser]
hi,

I'm not sure if this is a bug or not but I updated to v2.1.3 and now an AJAX command that worked before is no longer working.

I'm using a jquery plugin called jTables and to load the grid it uses GET to get the data it needs and that requires me using $this->input->get()

before it worked just fine, but now it is not working.

if the bug was $this->input->get() wasn't getting checked, then I guess its not a bug, and I'm going to have to find a way to get past that shortcoming. (so can't wait for CI 3 to be released Big Grin for better handling on CSRF)

Thanks.

#2
[eluser]Narf[/eluser]
My guess is that your AJAX request is sent via the POST method, but doesn't really send any POST fields. One of the changes in CI 2.1.3 is to set a CSRF cookie only on non-POST requests, while in 2.1.2 it used to set it if there was simply no POST data sent in the request.

#3
[eluser]elite-board[/eluser]
looked at the code and indeed it is.

I'll have to modify the plugin I'm using to adjust it so its not doing that.

#4
[eluser]elite-board[/eluser]
my problem is solved, so feel free to close this topic you so wish to, it was the plugins fault, not CI.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.