I've narrowed down the problem to CSRF protection which I don't need here 
(it's just an autocomplete script). I am, however, unable to disable CSRF.

If I try $this->Security->csrfCheck = false; I get a fatal error about 
unsetting string offsets:

 Fatal error: Cannot unset string offsets in 
.../lib/Cake/Controller/Component/SecurityComponent.php on line 232


Anyone able to help me with this?

On Wednesday, 11 July 2012 10:52:34 UTC+1, Gideon wrote:
>
> I have discovered that the problem is with the Security component. If I 
> disable it, I can get my post data back.
>
> I have already tried using validatePost=false but my requests are still 
> being blackholed. If I use requireSecure() then the requests are no longer 
> blackholed but instead the data is blank...
>
> On Wednesday, 11 July 2012 09:35:02 UTC+1, Gideon wrote:
>>
>> I tried that but it comes up as an empty array. I checked the post data 
>> and I have set data[query]=woolf which comes up in the transaction. I don't 
>> understand why the data isn't present.
>>
>>
>> On Wednesday, 11 July 2012 05:53:42 UTC+1, dario gaston musante wrote:
>>>
>>> try with a var_dump( $this->request->data ); or a 
>>> debug($this->request->data);
>>>
>>> El martes, 10 de julio de 2012 19:09:03 UTC-3, Gideon escribió:
>>>>
>>>> Hi all, I am trying to send ajax data to an autocomplete action 
>>>> /researchers/autocomplete.json. I have set data[query]=daniel but still I 
>>>> get null for $this->request->data('query') or anything else for that 
>>>> matter. If anyone can help I'd be really appreciative.
>>>
>>>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to