Home  >  Article  >  Backend Development  >  codeignter中的$this->input->xss_clean()解决办法

codeignter中的$this->input->xss_clean()解决办法

WBOY
WBOYOriginal
2016-06-13 10:34:061184browse

codeignter中的$this->input->xss_clean()
最近用codeignter框架进行一个表单的提交,查看资料用到了这个$this->input->xss_clean(),是这样描述的“整理表单字段的数据”,想问问什么是“整理表单字段的数据啊????

------解决方案--------------------
清理一些可能存在的恶意隐患数据。。。具体做了什么,查core/Security.php


------解决方案--------------------
xss_clean只看方法名字就知道清理啥玩意儿的~~哈哈~~
------解决方案--------------------
供参考
http://stackoverflow.com/questions/5337143/codeigniter-why-use-xss-clean

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn