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

[eluser]m4rw3r[/eluser]
The reason is that preg_quote() quotes the dash ("-") character in PHP 5.3, which means that you should either remove the call to preg_quote(), or to replace it with something like this:
Code:
str_replace('\\-', '-', preg_quote($this->config->item('permitted_uri_chars'))
So the if should be like this:
Code:
if ( ! preg_match(”|^[”.$this->config->item(‘permitted_uri_chars’).”]+$|i”, $str))
// or
if ( ! preg_match(”|^[”.str_replace('\\-', '-', preg_quote($this->config->item(‘permitted_uri_chars’))).”]+$|i”, $str))


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