Still having error in "The URI you submitted has disallowed characters." in CodeIgniter Login with Facebook
Here's what I have for my facebook enabled app
$config['permitted_uri_chars'] = '+=a-z 0-9?~%.,:_\-';
I've seen people who've had success also enabling the below, but mine is still set to FALSE
$config['enable_query_strings'] = TRUE;
I had a similar issue today when we upgraded to PHP 5.3, it turns out the solution was to update this line from _filter_uri()
in URI.php
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
With this new line from the CodeIgniter repository version:
if ( ! preg_match('|^['.str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-')).']+$|i', $str))