We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE 2.0 - Module AJAX - Invalid GET Data

Development and Programming

Michael Witwicki's avatar
Michael Witwicki
115 posts
15 years ago
Michael Witwicki's avatar Michael Witwicki

Hey folks,

Running into a bit of a brick wall here. Working on a module which uses AJAX in the control panel to update the users content. However, any time I make an AJAX call with a question-mark or semi-colon as part of the query string (fully URL encoded mind you), I get the response: Invalid GET Data.

Anyone have a workaround for this without hacking the core of EE? This is a pretty issue which will keep developers from being able to do any real interesting AJAX in the CP.

Thanks in advance for the help.

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
15 years ago
Bjørn Børresen's avatar Bjørn Børresen

It’s the security filter .. I haven’t run into this problem but I guess I will eventually so also interested in knowing if anyone has a solution here.

FYI found this:

This is not a bug, but is a security feature of ExpressionEngine to assist in preventing arbitrary script execution via the URL. If you need these characters in your input, you’ll need to use POST instead of GET.
       
Michael Witwicki's avatar
Michael Witwicki
115 posts
15 years ago
Michael Witwicki's avatar Michael Witwicki

I found that as well - but when I tried to switch from GET to POST the request seems to fail and it bumps to the CP homepage.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.