CodeIgniter Forums
Disallowed characters - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Disallowed characters (/showthread.php?tid=43023)



Disallowed characters - El Forum - 06-27-2011

[eluser]Chris Williams[/eluser]
I'm using FeedBurner for RSS. It puts a bunch of query stings at the end of my URL. On my live site I get this error:

Quote:An Error Was Encountered
The URI you submitted has disallowed characters.

However, on my dev server, It works just fine. I'm trying to figure the difference and I'm stumped.

Both my config files are the same.

Code:
$config['permitted_uri_chars']    = 'a-z 0-9~%.:_\-';

$config['allow_get_array']        = TRUE;
$config['enable_query_strings']   = FALSE;
$config['controller_trigger']     = 'c';
$config['function_trigger']       = 'm';
$config['directory_trigger']      = 'd'; // experimental not currently in use

Has anyone here experience something similar? What's your workaround?

Thanks!


Disallowed characters - El Forum - 06-27-2011

[eluser]Chris Williams[/eluser]
To add more detail, I've noticed that when I enable Query Strings, I get routed incorrectly.

Which further searching points me to a forum post about a potential similar problem here.

Instead of being routed here:
Code:
$route['(:any)/function/(:any)']   = "controller/function/$1/$2";

It's going here.
Code:
$route['(:any)/function']          = "controller/function/$1";



Disallowed characters - El Forum - 06-27-2011

[eluser]Chris Williams[/eluser]
Solved.

Changed config from this
Code:
$config['uri_protocol']    = 'AUTO';
to this
Code:
$config['uri_protocol']    = 'REQUEST_URI';