TSG-23483 Change after_page_load to html_body in Inject Javascript policy.

This commit is contained in:
fengweihao
2024-11-07 16:51:18 +08:00
parent ec75b72bd9
commit 9eb87f2a15
2 changed files with 1 additions and 11 deletions

View File

@@ -278,7 +278,7 @@ size_t insert_string(char * in, size_t in_sz, const char *insert_on, const char
return 0; return 0;
} }
if (insert_on != NULL && 0==strcasecmp(insert_on, "after_page_load")) if (insert_on != NULL && 0==strcasecmp(insert_on, "html_body"))
{ {
insert_from=strstr(in, "</body>"); insert_from=strstr(in, "</body>");
} }

View File

@@ -914,16 +914,6 @@ void ma_insert_profile_table_new_cb(const char *table_name, const char* key, con
{ {
ply_profile->profile_name=tfe_strdup(profile_name->valuestring); ply_profile->profile_name=tfe_strdup(profile_name->valuestring);
} }
cJSON *format = cJSON_GetObjectItem(insert_script, "format");
if(format && format->type==cJSON_String)
{
ply_profile->profile_type=tfe_strdup(format->valuestring);
}
cJSON *insert_on = cJSON_GetObjectItem(insert_script, "insert_on");
if(insert_on && insert_on->type==cJSON_String)
{
ply_profile->profile_position=tfe_strdup(insert_on->valuestring);
}
cJSON *item = cJSON_GetObjectItem(insert_script, "path"); cJSON *item = cJSON_GetObjectItem(insert_script, "path");
if(item && item->type==cJSON_String) if(item && item->type==cJSON_String)
{ {