Welcome Guest, Not a member yet? Register   Sign In
permitted_uri_chars
#1

[eluser]vrencianz[/eluser]
If someeone encodes URls containings tags, for example, CodeIgniter retuns a 'The URI you submitted has disallowed characters.' errors page.

This can be fixed by modifying 'application/config/config.php' to contain

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-+';

instead of

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

I am wondering if this mod has a sense for the default codeigniter installation's config.php file's content.
#2

[eluser]Aken[/eluser]
I would say probably not, because it's a fairly specific thing, and it's easy to modify by individual users when necessitated.

But, if anyone else has any feedback, let's hear it!
#3

[eluser]vrencianz[/eluser]
The idea is that the space is already accepted by the 'a-z 0-9~%.:_\-' config string, but URLs containing non-encoded spaces are not validated by HTML validators. If the space char is accepted by default, why don't accept its url-encoded form too?




Theme © iAndrew 2016 - Forum software by © MyBB