TSG-23483 Change after_page_load to html_body in Inject Javascript policy.
This commit is contained in:
@@ -278,7 +278,7 @@ size_t insert_string(char * in, size_t in_sz, const char *insert_on, const char
|
||||
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>");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
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");
|
||||
if(item && item->type==cJSON_String)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user