|
发表于 2012-9-26 15:04:38
|
显示全部楼层
再顺便说句. 如果使用该两个类, 出现了"The URI you submitted has disallowed characters."的错误信息, 请把MY_URI文件的_filter_uri()方法的代码改为PHP复制代码 if ($str != '' AND $this->config->item('permitted_uri_chars') != '') {
$str = urlencode($str);
if (!preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str) ) {
exit('The URI you submitted has disallowed characters.');
}
$str = urldecode($str);
}
return $str; 复制代码 |
|