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

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

WBOY
Release: 2016-06-13 13:24:03
Original
1425 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template