0plus1
0plus1

Reputation: 4555

URI segment with . in it gets converted to _

Hello hi have this issue, I call this url:

user_confirm/[email protected]

then use this:

echo $email = $this->uri->segment(3);

And it outputs:

this_is_fake@gmail_com

Why?

p.s. this is my config:

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

Thanks!

Upvotes: 2

Views: 150

Answers (1)

Mischa
Mischa

Reputation: 43298

In system/application/config/config.php set:

$config['uri_protocol']  = 'REQUEST_URI';

This seems to help for many people.

Source:

Upvotes: 2

Related Questions