scelusswe / escaper
此包最新版本(v1.0)没有可用的许可证信息。
提供扩展的转义功能,以防止跨站脚本攻击(XSS)。
v1.0
2019-06-19 14:54 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-09-20 02:42:51 UTC
README
XSS---为更安全网站而设计的Escaper类
用于防止跨站脚本攻击(XSS)的Escaper类
CEscaper基于以下推荐
https://wiki.php.net/rfc/escaper
https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet
使用的文档
https://php.ac.cn/manual/en/function.preg-replace-callback.php
https://php.ac.cn/manual/en/function.rawurlencode.php
https://php.ac.cn/manual/en/regexp.reference.escape.php
https://php.ac.cn/manual/en/function.htmlspecialchars.php
灵感来源于
https://docs.phalconphp.com/en/latest/api/Phalcon_Escaper.html
https://docs.phalconphp.com/en/latest/reference/escaper.html#escaping-html