Home > Backend Development > PHP Tutorial > ThinkPHP 输入过滤

ThinkPHP 输入过滤

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 14:24:58
Original
1936 people have browsed it

永远不要相信客户端提交的数据,所以对于输入数据的过滤势在必行,我们建议:

1.令牌验证避免数据的远程提交;

2.自动验证和自动完成机制进行初步过滤;

3.户输入的数据进行有效(根据你的应用)的过滤,常见的安全过滤函数包括stripslashes、htmlentities、htmlspecialchars等,官方的扩展类库中的ORG.Util.Input类则提供了更好的解决方法;

Related labels:
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