关键词个数限制改为把换行符去掉之后不大于1024个字符限制
This commit is contained in:
@@ -902,7 +902,7 @@ public class BaseController {
|
||||
}
|
||||
}
|
||||
if (!has) {
|
||||
if(keyword.split("\n").length>4) {
|
||||
if(keyword.replaceAll("\n","").length()>1024) {
|
||||
errInfo.append(String.format(prop.getProperty("most_keywords"),
|
||||
prop.getProperty("key_word")) + ";");
|
||||
}else {
|
||||
@@ -1147,7 +1147,7 @@ public class BaseController {
|
||||
}
|
||||
}
|
||||
if (!has) {
|
||||
if(keyword.split("\n").length>4) {
|
||||
if(keyword.replaceAll("\n","").length()>1024) {
|
||||
errInfo.append(String.format(prop.getProperty("most_keywords"),
|
||||
prop.getProperty("key_word")) + ";");
|
||||
}else {
|
||||
|
||||
@@ -1299,4 +1299,4 @@ av_protocol_note=Note:Recognizable Protocols Include RTSP,RTMP.
|
||||
ip_range_in_the_same=Start IP and end IP in a IP range must with in the same subnet
|
||||
log_to_url=To HTTP URL
|
||||
source_compile_id=Configuration Source
|
||||
most_keywords=%s can have four keywords at most
|
||||
most_keywords=%s can have 1024 chars at most
|
||||
@@ -1297,4 +1297,4 @@ av_protocol_note=Note:Recognizable Protocols Include RTSP,RTMP.
|
||||
log_to_url=To HTTP URL
|
||||
source_compile_id=Configuration Source
|
||||
av_protocol_note=Note:Recognizable Protocols Include RTSP,RTMP.
|
||||
most_keywords=%s can have four keywords at most
|
||||
most_keywords=%s can have 1024 chars at most
|
||||
@@ -1291,4 +1291,4 @@ av_protocol_note=\u6CE8\uFF1A\u53EF\u8BC6\u522B\u534F\u8BAE\u5305\u62EC RTSP\u30
|
||||
ip_range_in_the_same=IP\u8303\u56F4\u7684\u8D77\u59CBIP\u4E0E\u7EC8\u6B62IP\u5FC5\u987B\u5728\u76F8\u540C\u7F51\u6BB5
|
||||
log_to_url=\u8F6CHTTP URL\u914D\u7F6E
|
||||
source_compile_id=\u914D\u7F6E\u6765\u6E90
|
||||
most_keywords=%s\u6700\u591A\u5305\u542B\u56DB\u4E2A\u5173\u952E\u8BCD
|
||||
most_keywords=%s\u6700\u591A\u5305\u542B1024\u4E2A\u5B57\u7B26
|
||||
Reference in New Issue
Block a user