请教:URL分段传参,传入的参数值是否自动进行安全过滤?
全局设置里已将global xss filter设置为TRUE这样是否可以在php里直接使用URL分段参数,而无需考虑安全性问题了?
比如http://foo.com/index.php/class/method/para1/para2
在源代码的function method ($a,$b) {...}中使用$a,$b前还需要进行安全性检查吗?
求大牛解惑{:soso_e132:} 不用检查了
//input.php源码
// Should we filter the input data?
if ($this->_enable_xss === TRUE)
{
$str = $this->security->xss_clean($str);
}
多谢!
自己也试了几个特殊字符,确实会被阻止
页:
[1]