CodeIgniter Forums
URI-allowed charas - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: URI-allowed charas (/showthread.php?tid=14324)



URI-allowed charas - El Forum - 12-29-2008

[eluser]akkumaru[/eluser]
I've received this message:

"The URI you submitted has disallowed characters."

What characters are exactly disallowed,,?(And what are allowed?)
Is there any CI native function/class to convert the disallowed charas to allowed one,
and then do the reverse?


URI-allowed charas - El Forum - 12-29-2008

[eluser]Phil Sturgeon[/eluser]
If you take a look in the config you will see a string containing all allowed characters. By default, those are:

Quote:a-z 0-9~%.:_\-

That means a through z (case insensitive), spaces, numbers, ~, %, ., :, _ and -. Just add any character into the that you want to allow, or think about sending your data slightly different. If its GET strings you are having trouble with, take a look at the post How to use URI Segments and Query Strings in the same project.


URI-allowed charas - El Forum - 12-30-2008

[eluser]akkumaru[/eluser]
ups,,
i should've read the config.php more carefully,,

thanks,,