[eluser]Lockzi[/eluser]
[quote author="inparo" date="1223266214"]Hmm, just ran a quick test to double check. It's not CI.
Test controller:
Code:
function home($param)
{
echo $this->uri->uri_string(),'<br />';
die($param);
}
Prints:
[pre]
/test/home/kass.jpg
kass.jpg
[/pre]
Do you have any router changes that might do this? What happens if you read out $_SERVER['PATH_INFO']?[/quote]
Code:
function view($param, $param2)
{
//Pre
$this->function = "view";
echo $this->uri->uri_string()."<br />";
die($param2);
returns the following
Code:
/file_management/view/home/kass_jpg
kass_jpg
Code:
echo $_SERVER['PATH_INFO'];
throws an error...
Quote:Severity: Notice
Message: Undefined index: PATH_INFO
Filename: controllers/file_management.php
Line Number: 22
I haven't touched the routes... Feels like a needle in a haystack! It's driving me mad only because I can't find it.
I have solved it by using post to delete files since URL's are stored in the browser and the URL to a deleted file is not good to be stored
Still curiously mad about it though