Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/45/d676125595/htdocs/spibey/public_html/blog/wp-includes/pomo/plural-forms.php on line 210

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/45/d676125595/htdocs/spibey/public_html/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 77

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/45/d676125595/htdocs/spibey/public_html/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 87
James

“Disallowed Key Characters” response when sending ajax requests to ExpressionEngine control panel

When developing a new ExpressionEngine module which uses Ajax extensively within the control panel, I kept getting the following response when trying to access a control panel url.

Disallowed Key Characters.

The reason for this is the EE blocks any urls which contain anything other than the following

a-z
0-9 
:
_ 
/ 
-

The reason it was failing was because my urls contained escaped html characters – & instead of &. The solution was to convert the escaped url back to unescaped by using theĀ htmlspecialchars_decode() function

htmlspecialchars_decode($url)
08
Nov 2011
POSTED BY
POSTED IN ExpressionEngine PHP
DISCUSSION 0 Comments
TAGS