$config['permitted_uri_chars'] doesn't work properly - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: $config['permitted_uri_chars'] doesn't work properly (/showthread.php?tid=46903) |
$config['permitted_uri_chars'] doesn't work properly - El Forum - 11-19-2011 [eluser]asim111[/eluser] I just installed Codeigniter 2.1.0 I want to allow just few characters in URLs. By default only these are allowed: a-z 0-9~%.:_- I'm having some problems with $config['permitted_uri_chars'] as it is not working properly for me for some reasons. I used few characters in URL for testing purposes such as single quote, double quote, £ pound sign. I can't see any restriction on these characters or there is NO ERROR message like Quote:"The URI you submitted has disallowed characters." My test URL was: Code: http://localhost/codeigniter/index.php/welcome/index/abc£1/ And on the other hand, I tried percentage sign % which is allowed in URLs and got the following error message Code: 400 Bad Request: Your browser sent a request that this server could not understand. Am i doing something wrong? please help Thanks $config['permitted_uri_chars'] doesn't work properly - El Forum - 01-21-2012 [eluser]tommymcglynn[/eluser] I am having the same issue. Any solutions? $config['permitted_uri_chars'] doesn't work properly - El Forum - 01-21-2012 [eluser]CroNiX[/eluser] They still have to be valid uri encoded characters. Just because you add something to the permitted characters doesn't make it a valid to be in the url, if it goes against the standards. $config['permitted_uri_chars'] doesn't work properly - El Forum - 01-22-2012 [eluser]parvus[/eluser] Code: # Options |