CodeIgniter Forums

Full Version: The URI you submitted has disallowed characters. Endoded url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I have a registration form in my application. When someone complete the registration receive an email with a link to confirm registration (typical situation).

The link is something like this

registration is the controller

validation is the function

and the last one is the username

I did the username encode...

$encrypted_username = $this->encrypt->encode($username);

when I go to this link i get this error

The URI you submitted has disallowed characters.

If I change my config.php line code to

$config['permitted_uri_chars'] = '';

everything goes right, but they say we shouldn't do this.

So, how can I solve this problem right?

El Forum

I changed my config.php to

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

and now is working fine, I hope this is a safe solution.