views:

59

answers:

0

I have a script that takes input that looks like this...

http://tracking.mysite.com/9/1091/2115/u/http%3A%2F%2Fwww.foobar.com%2Ftestdir%2F

But when I do this...

die(print_r($this->uri->uri_to_assoc(4),TRUE));

I get this... (probably because CodeIgniter or Apache is decoding the URI embedded within the URI)

Array ( [1091] => 2115 [u] => http: [www.foobar.com] => testdir )

Instead of...

Array ( [1091] => 2115 [u] => http%3A%2F%2Fwww.foobar.com%2Ftestdir%2F )

My Apache has AllowEncodedSlashes On and I have...

$config['uri_protocol'] = "QUERY_STRING"; //in the config.php file (due to it replacing '.' with '_')

It was working fine, but we recently did a migration and it's gone to shit (not positive it was the migration though), I thought it was Apache, but now I'm wondering if it's CodeIgniter or Apache, or if anybody has any ideas why the heck it would do this?