Even with ( and ) in permitted_uri_chars - they're being converted to safe html entities - 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: Even with ( and ) in permitted_uri_chars - they're being converted to safe html entities (/showthread.php?tid=24154) |
Even with ( and ) in permitted_uri_chars - they're being converted to safe html entities - El Forum - 11-01-2009 [eluser]jedd[/eluser] Hopefully an easy one. I want to have parenthesis - '(' and ')' - characters allowed in my URLs. I've modified my config.php thus: Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-+()'; But when I grab the segments in my URL using $this->uri->segment_array(); this is what happens to my parameters: Code: // input url == album/gallery/i4c3d775755/fSOMEWHERE+in+singapore+(temp+label) I suspect I can de-entity the string as I pull it in on my uri->segment_array () call but I'm wondering if there's some other magic I can do in order to enforce some non-munging of anything in permitted_uri_chars EDIT: Ahh, here's the problem - in the URI library, line 197+ in the _filter_uri() method: Code: // Convert programatic characters to entities Knowing the problem is good, but a nice solution doesn't immediately present itself. |