Fellow coders, i have a function in a codeigniter controller that accepts a couple of parameters one of them being an email address. it is called liked this:
domain/path/mycontroller/myfunc/email@gmail.com/anotherparam
what the controller is receiving is: email@gmail_com
i have allowed periods and ‘@’ in my CI config:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@';
and my .htaccess is the following:
RewriteEngine On
RewriteBase /myapp/
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /myapp/index.php?/$1 [L]
Any thoughts on how i can solve this problem?
thanks
Found a related post on the CI forum from 2008:
http://codeigniter.com/forums/viewthread/94091/
Looks like some people were having the exact same problem, and tweaking the
$config['uri_protocol']inconfig.phpwas the solution.At least one person reported that the
QUERY_STRINGvalue fixed their problem. If this doesn’t work, try one of the otherdelicious flavorssettings.Hope this gets you on the right path to a solution.