1.修复替换字符编码大小写匹配错误,造成页面替换失败
2.修复命中insert后,发送无效日志 3.修复正则表达式失败返回-1,size_t造成数据反转
This commit is contained in:
@@ -202,7 +202,7 @@ size_t replace_string(const char * in, size_t in_sz, const struct replace_rule *
|
||||
|
||||
pcre2_code *re = pcre2_compile(pattern, strlen(zone->find), pcre2_options, &error, &erroffset, 0);
|
||||
if (!re)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
pcre2_jit_compile(re, PCRE2_JIT_COMPLETE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user