切换mysql为达梦数据库-代码审查
1.supervision-boot模块
This commit is contained in:
@@ -10,7 +10,7 @@ public class ClearPathUtil {
|
|||||||
* 针对漏洞,新增的特殊字符替换的扫描方法
|
* 针对漏洞,新增的特殊字符替换的扫描方法
|
||||||
*/
|
*/
|
||||||
public static String cleanString(String str) {
|
public static String cleanString(String str) {
|
||||||
if (str == null){
|
if (str == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@@ -122,11 +122,12 @@ public class ClearPathUtil {
|
|||||||
return 'X';
|
return 'X';
|
||||||
case 'Ⅹ':
|
case 'Ⅹ':
|
||||||
return 'Ⅹ';
|
return 'Ⅹ';
|
||||||
|
default:
|
||||||
|
if (isChineseChar(ch)) {
|
||||||
|
return ch;
|
||||||
|
}
|
||||||
|
return '%';
|
||||||
}
|
}
|
||||||
if (isChineseChar(ch)){
|
|
||||||
return ch;
|
|
||||||
}
|
|
||||||
return '%';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据Unicode编码判断中文汉字和符号
|
// 根据Unicode编码判断中文汉字和符号
|
||||||
|
|||||||
Reference in New Issue
Block a user