URI protocol missing to look for ORIG_PATH_INFO
Brought to you by:
jekkos,
pappastech
There is an issue that needs to be addressed either by CI or Open Source Point of Sale.
As I have mentioned in Ticket #61, when I have the URI protocol set to AUTO, I was unable to load the page for 'add new items' etc. It was keep loading the 'home' page view.
I was able to fix it by modifying the URI.php under ~/system/core/
// Is there a PATH_INFO variable?
// Note: some servers seem to have trouble with getenv() so we'll test it two ways
$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');
if (trim($path, '/') != '' && $path != "/".SELF)
{
$this->_set_uri_string($path);
return;
}
I added the following lines:
//added by Mayooran
elseif (isset($_SERVER['ORIG_PATH_INFO'])) {
$path= trim(str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['ORIG_PATH_INFO']), '/');
$this->_set_uri_string($path);
return;
}
Now it seems to work.