![]() |
Need to allow @ in the URI string - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Need to allow @ in the URI string (/showthread.php?tid=22600) |
Need to allow @ in the URI string - El Forum - 09-15-2009 [eluser]Unknown[/eluser] I'm developing a REST app and one of the capabilities is to be able to register a user. Of course I'll need a valid email address but CI rejects the '@' sign. I tried changing the $config['permitted_uri_chars'] to these values to no avail: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\@\-'; $config['permitted_uri_chars'] = 'a-z 0-9~%.:_@-'; $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@'; $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\@'; heck I even tried $config['permitted_uri_chars'] = '' and nothing is changing ![]() Suggestions? Need to allow @ in the URI string - El Forum - 09-15-2009 [eluser]pistolPete[/eluser] Why do you need to pass the email address via URI instead of using a POST request? Need to allow @ in the URI string - El Forum - 09-15-2009 [eluser]Unknown[/eluser] [quote author="pistolPete" date="1253033229"]Why do you need to pass the email address via URI instead of using a POST request?[/quote] It's a client requirement, I'm not privy of what happens beyond. I do think that it's quite overkill for a simple registration procedure to make use of a REST server but then I don't know of the big picture. But I found the solution, the $config['uri_protocol'] is being modified by the REST library I am using. Client wants to register users with the use of my REST server so that's the case. OK problem solved. Thanks pistolPete for the reply. |