/*
* Run the file through the XSS hacking filter
* This helps prevent malicious code from being
* embedded within a file. Scripts can easily
* be disguised as images or other file types.
*/
if ($this->xss_clean)
{
if ($this->do_xss_clean() === FALSE)
{
$this->set_error('upload_unable_to_write_file');
return FALSE;
}
}
注释掉就可以上传。不知道有什么办法可以不注释上面的代码,又支持 tar tar.bz 等 linux 下常用的压缩格式。