[eluser]emelpy[/eluser]
Hey guys,
I am having an issue with CodeIgniter decoding my urls and redirecting to the decoded location.
I have a controller that accepts search string in the url like so:
Code:
http://www.mydomain.com/controller/function/q/foo
Where foo is the string to search on. I would like allow users to include slashes in their search so I did this by encoding slashes into their respective character code(2F). So the url would look as follows:
Code:
http://www.mydomain.com/controller/function/q/foo%2Fbar
Unfortunately it seems that CI is decoding the url and redirecting to the decoded location. in this example it would try to go to
Code:
http://www.mydomain.com/controller/function/q/foo/bar
which causes an error to be thrown. An 'Object not found' error, to be specific. I know it is trying to redirect to this location because when I try putting in other restricted characters(a single quote, for instance), an error is thrown which states that the url contains a disallowed character, even though the character was decoded.
Thanks for any help you can provide.
Regards,
Curtis