修复规则命中应答头后,redirect、block无效

修复由于加载inset文件失败,后续处理可能存在问题
This commit is contained in:
fengweihao
2019-06-15 18:19:15 +08:00
parent 0db61c2a66
commit 048c60439d
2 changed files with 12 additions and 3 deletions

View File

@@ -321,6 +321,11 @@ size_t insert_string(char * in, size_t in_sz, const char *insert_on, const char
char* insert_from=NULL;
size_t offset=0;
if (script == NULL)
{
return 0;
}
if (insert_on != NULL && 0==strcasecmp(insert_on, "after-page-load"))
{
insert_from=strstr(in, "</body>");