修复规则命中应答头后,redirect、block无效
修复由于加载inset文件失败,后续处理可能存在问题
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user