Welcome Guest, Not a member yet? Register   Sign In
Avoiding URL Forbidden Characters By Using urlencode()?
#6

[eluser]danmontgomery[/eluser]
CI's allowed URL characters are defined in config.php

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~%.:_\-';

You can modify that regular expression, or replace the invalid characters in the url and do some substitution to translate the url to the filename.


Messages In This Thread
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 11:20 AM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 12:04 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 12:25 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 12:43 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 01:20 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 01:27 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 02:23 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 02:24 PM
Avoiding URL Forbidden Characters By Using urlencode()? - by El Forum - 02-03-2010, 07:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB