注释有误

Bug,需求以及想法
回复
hunterchina
帖子: 1
注册时间: 2010年 7月 31日 15:35

注释有误

帖子 hunterchina »

common.php 中
public static function removeXSS($val)
{
// remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed
// this prevents some character re-spacing such as <javascript>
// note that you have to handle splits with
, , and later since they *are* allowed in some inputs
$val = preg_replace('/([x00-x08]|[x0b-x0c]|[x0e-x19])/', '', $val);

注释有误:// remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed
CR 为0D,LF为0A,TAB为09
程序无误
头像
zyzzc
帖子: 648
注册时间: 2009年 9月 25日 20:11
联系:

Re: 注释有误

帖子 zyzzc »

提到google code的issue中
回复