Welcome Guest, Not a member yet? Register   Sign In
system/core/URI.php -> rawurldecode, why?
#1

I was attempting to setup a script to track outbound clicks. It requires passing the URI to a controller method. However, I bumped into an issue when URI decided to rawurldecode() (line 209 in CI3).

My question is - is there any reason it's doing this? How often are people passing urlencoded strings to URI? If there is good reason for this, perhaps we can get around it with a config setting or a by passing an argument when URI is initialized in Router::__construct().

I ended up using base64_encode and adding "=" to the list of permitted_uri_chars, but as the warning in config/config.php says, I'm not fully aware of the repercussions of adding "=" to that list...

Any insight would be appreciated. Thanks.
Reply


Messages In This Thread
system/core/URI.php -> rawurldecode, why? - by SomeGuy - 01-03-2015, 06:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB