Welcome Guest, Not a member yet? Register   Sign In
Allowed URL Characters
#1

[eluser]JuanitoDelCielo[/eluser]
Hi guys. I was using the method

Code:
$this->uri->segment(2);

And it works fine but, if the user uses uppercase in the url it changes the result.

1. http://localhost/pu/user/insert
2. http://localhost/pu/user/INSERT

Both of them load the same controller/method.

Reading the config file I found the regex a-z 0-9~%.:_\- so if the user uses uppercase the secound one should show a 404 page right? beacuse if doesn't =(.

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


Messages In This Thread
Allowed URL Characters - by El Forum - 02-10-2011, 10:18 AM
Allowed URL Characters - by El Forum - 02-10-2011, 11:30 AM
Allowed URL Characters - by El Forum - 02-10-2011, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB