Compare commits

...

2 Commits

Author SHA1 Message Date
gaowdong fd72352470 Merge remote-tracking branch 'origin/bonus-houqin' into bonus-houqin 2025-03-07 13:54:32 +08:00
gaowdong a2793c4d5a 安全脚本模式 去掉; 2025-03-07 13:54:10 +08:00
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ public class SafeUtil {
* 安全脚本模式用于检测脚本注入的正则表达式
* 由于平台中setfilter中使用多个参数时用到&符号因此未包含&符号
*/
public final static String SAFE_SCRIPT_PATTERN = "(\\||;|\\$|'|\\'|0x0d|0x0a|\\%27|\\%3B)";
// public final static String SAFE_SCRIPT_PATTERN = "(\\||;|\\$|'|\\'|0x0d|0x0a|\\%27|\\%3B)";
public final static String SAFE_SCRIPT_PATTERN = "(\\||\\$|'|\\'|0x0d|0x0a|\\%27|\\%3B)";
/**
* 检查特殊字符的正则表达式