loveci 发表于 2012-2-14 13:29:07

The URI you submitted has disallowed characters. PHP版本 5.3.5

我改了一个地方..在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;   
}   

}

?>

这个是在哪个文件下哈...求...

Hex 发表于 2012-2-14 13:38:57

你的 CI 是什么版本的?另外你的URL是什么?不建议在 URL 里传递特殊字符,有特殊字符请用 GET 传参。

loveci 发表于 2012-2-15 09:42:22

弱弱的问一下,如何查看CI版本,URL 没有特殊字符,就是localhost/name...
页: [1]
查看完整版本: The URI you submitted has disallowed characters. PHP版本 5.3.5