Welcome Guest, Not a member yet? Register   Sign In
codeigniter 1.7 on PHP5.3
#2

[eluser]nikkofu[/eluser]
and this is MY_URI.php, it works fine at PHP5.2.3-5


<?php

class MY_URI extends CI_URI {
function _filter_uri($str)
{
if ($str != '' AND $this->config->item('permitted_uri_chars') != '')
{
//echo $str . '<br>';//here is my debug code
$str = urlencode($str);
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
{
exit('The URI you submitted has disallowed characters.');
}
$str = urldecode($str);
}
return $str;
}

}

when i goes to http://domain/welcome/index with PHP5.2.3-5, the original debug line shows:
welcome<br>index<br>

and i goes to http://domain/welcom/index again in PHP5.3.0, the new debug line shows:
welcome<br>

it breaks the URI and lost the "index"

please help!

thanks again!


Messages In This Thread
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 01:55 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 02:22 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 02:41 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 10:24 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 03:12 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 04:49 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 05:02 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:12 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:22 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:24 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-14-2009, 08:47 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-14-2009, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB