Skip to content

Commit

Permalink
Merge pull request alibaba#407 from wsxe9988/main
Browse files Browse the repository at this point in the history
fix doc bug,fix alibaba#405
  • Loading branch information
wenshao authored Jun 4, 2022
2 parents 00953fb + 4a0f780 commit ba7c427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/autotype_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FASTJSON支持AutoType功能,这个功能在序列化的JSON字符串中带上类型信息,在反序列化时,不需要传入类型,实现自动类型识别。

## 2. AutoType安全机制介绍
* 必须显示打开才能使用。和fastjson 1.x不一样,fastjson 1.x为了兼容有一个白名单,在fastjson 2中,没有任何白名单,也不包括任何Exception类的白名单,必须显示显示打开才能使用。这可以保证缺省配置下是安全的。
* 必须显示打开才能使用。和fastjson 1.x不一样,fastjson 1.x为了兼容有一个白名单,在fastjson 2中,没有任何白名单,也不包括任何Exception类的白名单,必须显示打开才能使用。这可以保证缺省配置下是安全的。
* 支持配置safeMode,在safeMode打开后,显式传入AutoType参数也不起作用
* 显式打开后,会经过内置黑名单过滤。该黑名单能拦截大部分常见风险,这个机制不能保证绝对安全,打开AutoType不应该在暴露在公网的场景下使用。

Expand Down

0 comments on commit ba7c427

Please sign in to comment.