diff --git a/plugin/business/tsg-http/src/pattern_replace.cpp b/plugin/business/tsg-http/src/pattern_replace.cpp index 4b7f2ad..d9167fd 100644 --- a/plugin/business/tsg-http/src/pattern_replace.cpp +++ b/plugin/business/tsg-http/src/pattern_replace.cpp @@ -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, ""); } diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp index 9da3642..4c0a4b3 100644 --- a/plugin/business/tsg-http/src/tsg_http.cpp +++ b/plugin/business/tsg-http/src/tsg_http.cpp @@ -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) {