|
我改了一个地方..在system/application/config/config.php 中改为 $config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';
然后网上说还要该一个地方:
<?php
// 支持中文
class MY_URI extends CI_URI {
function _filter_uri($str)
{
if ($str != '' AND $this->config->item('permitted_uri_chars') != '')
{
$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;
}
}
?>
这个是在哪个文件下哈...求...
|
|