Welcome Guest, Not a member yet? Register   Sign In
Allowing '!'s in URLs
#1

[eluser]IanMcQ[/eluser]
Hi guys,

I have an ajax module that takes in the 3rd segment of a URL. Sometimes this 3rd segment may contain a "!" but unfortunately CI pukes out and says that "The URI you submitted has disallowed characters" error. I was wondering what I could add to the $config['permitted_uri_chars'] field in my config to ALLOW "!" in URLs. Please let me know if this is possible and how to do this.

Thanks in advanced! I really love CI!
#2

[eluser]Leggy[/eluser]
You were so close, you just need to add !:
Code:
<?php
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_!-';
?>
#3

[eluser]IanMcQ[/eluser]
Thanks! It works now. Smile




Theme © iAndrew 2016 - Forum software by © MyBB