Welcome Guest, Not a member yet? Register   Sign In
enable_query_strings and permitted_uri_chars enabled only in certain controllers
#1

[eluser]Chalda Pnuzig[/eluser]
It's possibile?
#2

[eluser]TheFuzzy0ne[/eluser]
Yes, it is.
#3

[eluser]Chalda Pnuzig[/eluser]
and how? Smile
#4

[eluser]TheFuzzy0ne[/eluser]
You can add some logic to the end of your config.php to dynamically change the allowed characters.

Code:
if (preg_match('/^(\/some_controller)/', $_SERVER['REQUEST_URI']))
{
    $config['permitted_uri_chars'] = '';
    $config['enable_query_strings'] = TRUE;
}

There are some improvements you can make to integrate that into your setup a bit better, but that should give you an idea of where to start.
#5

[eluser]Chalda Pnuzig[/eluser]
I thought there was a switch or something like that...
#6

[eluser]TheFuzzy0ne[/eluser]
No, there's not. I reckon it's because it's not needed by many projects. If you need a switch, make one. Smile




Theme © iAndrew 2016 - Forum software by © MyBB