切换mysql为达梦数据库-代码审查

1.supervision-boot模块
This commit is contained in:
2024-09-27 10:30:07 +08:00
parent 33c0e58ab0
commit 4a0e9e3343

View File

@@ -10,7 +10,7 @@ public class ClearPathUtil {
* 针对漏洞,新增的特殊字符替换的扫描方法
*/
public static String cleanString(String str) {
if (str == null){
if (str == null) {
return null;
}
StringBuilder sb = new StringBuilder();
@@ -122,12 +122,13 @@ public class ClearPathUtil {
return 'X';
case '':
return '';
}
if (isChineseChar(ch)){
default:
if (isChineseChar(ch)) {
return ch;
}
return '%';
}
}
// 根据Unicode编码判断中文汉字和符号
private static boolean isChineseChar(char c) {