Welcome Guest, Not a member yet? Register   Sign In
Server.UrlEncode from Asp.net to codeigniter
#4

[eluser]achilleusrage[/eluser]
Limiting characters in URI's is an important security measure. You should really look into doing something else with the data in your URIs (like, strip special characters and replace whitespace with underscores (_)).

Example: http://yourwebsiteaddress/how_are_you/x/5

But, with that warning, you can allow other characters in your config.php file:

Code:
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs.  When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

...if indeed, as the comments above suggest, you are insane. :-)


Messages In This Thread
Server.UrlEncode from Asp.net to codeigniter - by El Forum - 03-09-2012, 05:16 AM
Server.UrlEncode from Asp.net to codeigniter - by El Forum - 03-09-2012, 07:00 AM
Server.UrlEncode from Asp.net to codeigniter - by El Forum - 03-09-2012, 09:18 AM
Server.UrlEncode from Asp.net to codeigniter - by El Forum - 03-09-2012, 11:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB