对委托项目名称、标段名称、标段编号增加新的非法字符校验
This commit is contained in:
@ -17,7 +17,7 @@ import java.util.Map;
|
||||
@Slf4j
|
||||
public class CheckUtil {
|
||||
|
||||
private static String checkValue[] = {"\t","\n","\r","<",">","|","\\","/","?",":","*","\""};
|
||||
private static String checkValue[] = {"\t","\n","\r","<",">","|","\\","?",":","*","\""};//"/",
|
||||
|
||||
private static int checkBdNameLengh = 200;
|
||||
//zhqbin 20220428 update 增加对委托项目名称\t\r\n字符校验
|
||||
@ -103,11 +103,7 @@ public class CheckUtil {
|
||||
}
|
||||
|
||||
public static void main(String args[]){
|
||||
String[] ss = {"\t","\n","\r","<",">","|","\\","/","?",":","*","\""};
|
||||
String s ="aaaaa\\aa";
|
||||
for(String s1:ss){
|
||||
System.out.println(s.toString().indexOf(s1)>0) ;
|
||||
}
|
||||
check("whw综合评分");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user