Changing $config['permitted_uri_chars'] |
[eluser]mdavis1982[/eluser]
Hi all... I have just almost finished developing my first CI application, and I must say what a breeze it was to do! I now need to allow apostrophes in the URL so that people can't search my database by title. I know it's not the most secure of things, but it is a client requirement. I have changed my $config['permitted_uri_chars'] to: Code: $config['permitted_uri_chars'] = "a-z 0-9\'~%.:_-"; To which I have added the ' and the \. My problem is that when I now submit an url from my form which contains an apostrophe, I'm getting an URL like: http://localhost/search/title/don\'t This obviously doesn't look very nice, and I'd really like to get rid of the \ before the '. Does anyone have any ideas? Thanks... Matt |
Messages In This Thread |
Changing $config['permitted_uri_chars'] - by El Forum - 02-15-2008, 01:47 PM
Changing $config['permitted_uri_chars'] - by El Forum - 02-15-2008, 01:56 PM
Changing $config['permitted_uri_chars'] - by El Forum - 02-15-2008, 01:58 PM
Changing $config['permitted_uri_chars'] - by El Forum - 02-15-2008, 02:32 PM
|