Welcome Guest, Not a member yet? Register   Sign In
Is "@" safe in URLs?
#1

[eluser]Deep Arora[/eluser]
I need to form a URL like:

http://domain.com/ci/index.php/controlle...domain.com

to retrieve email id from the URL...and since CI default setting in config is:

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

is it safe to allow "@" in this permitted list?, so it become:

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

[eluser]Rick Jolly[/eluser]
The @ symbol is a reserved character and has special meaning so it should be encoded. Just urlencode($email) before adding it to the query string.




Theme © iAndrew 2016 - Forum software by © MyBB