1.修复替换字符编码大小写匹配错误,造成页面替换失败

2.修复命中insert后,发送无效日志
3.修复正则表达式失败返回-1,size_t造成数据反转
This commit is contained in:
fengweihao
2019-06-29 19:39:29 +08:00
parent 455c8c1a93
commit 348afbc00d
2 changed files with 38 additions and 6 deletions

View File

@@ -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);